Fabio Erculiani
82b85704ce
[entropy.output] make TextInterface methods classmethods
...
This makes possible to fix a circular dependency in the Entropy
Resources Lock management methods
2013-12-05 21:36:30 +01:00
Fabio Erculiani
7fc8ad14ad
[RigoDaemon] add debug output on _authorize callback method
2013-11-29 11:57:57 +01:00
Fabio Erculiani
04048b8818
[RigoDaemon] signal preserved libraries through preserved_libraries_available()
2013-11-29 10:48:50 +01:00
Fabio Erculiani
41e0cf576b
[RigoDaemon] migrate to the new PackageActionFactory API
2013-11-23 14:14:48 +01:00
Fabio Erculiani
8c5a499e58
[RigoDaemon] set the default terminal (${TERM}) if unset
...
This prevents portage phases printing weird things about missing ${TERM}
2013-11-21 21:48:07 +01:00
Fabio Erculiani
3431755aaf
[RigoDaemon] do not trigger kernel-switcher if kernel is already installed
2013-11-13 15:36:32 +01:00
Fabio Erculiani
42ab0c38a1
[RigoDaemon] use KernelSwitcher.list() rather than reimplementing the same logic
2013-11-13 13:17:14 +01:00
Fabio Erculiani
e93eb24728
[RigoDaemon] implement transparent kernel-switcher support
2013-11-13 13:14:17 +01:00
Fabio Erculiani
a323563b22
[RigoDaemon] add "system_restart_needed" signaling
2013-11-05 11:17:32 +01:00
Fabio Erculiani
b71ede2b25
[RigoDaemon] implement support for fetch_abort_function
...
This makes possible to immediately interrupt the download process
2013-11-03 15:39:43 +01:00
Fabio Erculiani
a0f684b8ae
[RigoDaemon] fix MultipleUrlFetcher stats computation
...
Also introduce stale data handling.
2013-11-03 14:41:21 +01:00
Fabio Erculiani
b1642ac2cb
[RigoDaemon] *UrlFetcher: move class variables inside instance
2013-11-03 14:11:22 +01:00
Fabio Erculiani
898a200479
[RigoDaemon] always avoid transfer_output() signal floods
2013-11-03 13:59:18 +01:00
Fabio Erculiani
60febda4f0
[RigoDaemon] add initial One Click Update notification support
2013-11-03 12:57:08 +01:00
Fabio Erculiani
5b9a5ee273
[RigoDaemon] extend updates_available() signal with "One Click Update" information
2013-11-02 14:17:33 +01:00
Fabio Erculiani
e02c8da563
[RigoDaemon] fix xml indentation
2013-11-02 14:12:22 +01:00
Fabio Erculiani
79261d5086
[RigoDaemon] increase auto_repositories_update randomization space
2013-10-21 13:08:29 +02:00
Fabio Erculiani
27659c6dc6
[RigoDaemon] drop access() usage
2013-09-18 08:53:44 +02:00
Fabio Erculiani
7ff15f22eb
[RigoDaemon] randomize _auto_repositories_update to avoid bursts of requests
2013-06-10 11:07:18 +02:00
Fabio Erculiani
d6295b3e00
[entropy*] create const_mkstemp() as tempfile.mkstemp() wrapper.
...
using /tmp as TMPDIR is a no go, since on modern systems, /tmp is on
tmpfs with a very limited amount of fs size assigned. Use /var/tmp/entropy
(or /var/tmp as fallback) instead.
2013-03-29 12:09:17 +00:00
Fabio Erculiani
73abfc6fa0
[RigoDaemon] schedule a reload every 24 hours to cut on Python leaks.
2013-03-04 13:59:44 +00:00
Fabio Erculiani
7771d641e2
[entropy.client] extend Client.calculate_updates() to return critical updates info
...
calculate_updates() now returns a dictionary containing the same pieces of
information available before. In addition, it now also returns if critical
updates were found and returned by the method itself.
This is particularly useful for enforcing relaxed deps calculation in case
of critical updates (which is what happens now).
This commit breaks the Entropy Client API.
2013-02-24 13:30:28 +00:00
Fabio Erculiani
1655cb3baa
[RigoDaemon] drop send_requested_reply from dbus config, causes deadlock with gdm-3.6
2013-02-12 14:22:56 +01:00
Fabio Erculiani
f32ddb95e5
[RigoDaemon] drop any reference to etpUi['debug']
2012-11-06 20:50:47 +01:00
Fabio Erculiani
280a7067b3
[entropy.cli] drop module, move code to client/ and server/
...
Even though it is a small code duplication, entropy.cli does make
much less sense.
2012-11-04 21:11:56 +01:00
Fabio Erculiani
d9bfa7f11f
[RigoDaemon] half the timer frequency and add some randomization in _auto_repositories_update()
...
When sabayon-weekly is updated, the web service is hit by a huge amount of
requests. This commits add a bit more entropy on the execution of
_auto_repositories_update() (random between 30mins to 2 hours) and reduces
the timer frequency to 8hrs (from 4).
2012-09-08 20:11:22 +02:00
Fabio Erculiani
796e71e9ac
[repo] migrate shebangs to /usr/bin/python
2012-08-18 16:53:32 +02:00
Fabio Erculiani
d56cd777c8
[RigoDaemon] some minor Python 3.x related fixes
2012-08-18 09:53:18 +02:00
Fabio Erculiani
96976374fe
[RigoDaemon] rewrite Installed Repository I/O event handler
...
Rewrite the serialization code of the I/O events coming in when
the Installed Packages Repository is modified (at filesystem level)
to better deal with bursts of events.
The new code uses a "baton" Semaphore as mutex that can be passed
through threads. The MainThread event handler function tries to
acquire the Semaphore in NB mode, if it does, it spawns a thread
that executes all the operations (acquire locks in blocking mode,
calculate updates, etc) and releases the Semaphore once done.
Olympic win!
2012-08-17 12:27:55 +02:00
Fabio Erculiani
c5cf96ace0
[RigoDaemon] delay updates calculation by 20 seconds after locks are released
2012-08-17 11:03:58 +02:00
Fabio Erculiani
89b114f005
[Rigo*] implement mirrors optimization feature, see bug #3438
2012-08-03 16:26:52 +02:00
Fabio Erculiani
107e55a029
[RigoDaemon] fix polkit "Manage Configuration" message field (gnome-polkit guys are idiot!)
2012-08-03 16:17:21 +02:00
Fabio Erculiani
b5b8d25297
[RigoDaemon] add support for Action Queue "introspection" (in a MVCC way)
...
The new action_queue_items() is able to return the internal
Action Queue status without blocking while returning a consistent
state. This method will be used by Rigo to list the Action Queue
activity on the bottom notification box.
2012-07-31 16:35:38 +02:00
Fabio Erculiani
e432a1c9f0
[RigoDaemon] make sure to always call Package.kill()
2012-07-27 21:37:48 +02:00
Fabio Erculiani
7135ba3a01
[RigoDaemon] make sure to keep the Installed Packages Repository closed
...
This helps in case of uncommitted transactions that could cause
any sqlite3 db consumer to lock until timeout with "Database is locked".
2012-07-14 16:10:18 +02:00
Fabio Erculiani
b29764443b
[Rigo] implement Repository management
2012-07-01 23:41:07 +02:00
Fabio Erculiani
0bd6542a33
[RigoDaemon] be fault-tolerant wrt exceptions happening inside app mgmt worker threads
2012-05-20 21:41:09 +02:00
Fabio Erculiani
8dfe7b435f
[RigoDaemon] add thread dumper (as implemented in Rigo)
2012-05-11 06:40:58 +02:00
Fabio Erculiani
5afffbd96d
[RigoDaemon] make app management finalization code more robust
2012-04-19 22:59:17 +02:00
Fabio Erculiani
33222698ce
[RigoDaemon] only log debug output when --debug is provided
2012-04-19 22:19:50 +02:00
Fabio Erculiani
b76ede2ebb
[RigoDaemon] fix else branch (regression from previous commit)
2012-04-19 22:15:33 +02:00
Fabio Erculiani
c767da88d3
[RigoDaemon] app_log_path can be None, deal with it during app mgmt finalization code
2012-04-19 20:31:58 +02:00
Fabio Erculiani
c405b19bdb
[RigoDaemon] never flood clients with transfer_output()
2012-04-19 20:31:29 +02:00
Fabio Erculiani
ff3578321d
[RigoDaemon] set allow_active=yes for org.sabayon.RigoDaemon.update
2012-04-17 20:36:52 +02:00
Fabio Erculiani
375ec06f60
[RigoDaemon] make the dbus service executable source /etc/profile
2012-04-17 20:31:24 +02:00
Fabio Erculiani
5400519abc
[RigoDaemon] feed App Management notes to clients, bump API
...
Update Rigo as well and let it push the notes to the Terminal Widget
(they come from stdout and stderr, sorry)
2012-04-17 19:53:57 +02:00
Fabio Erculiani
496af68b50
[RigoDaemon] add deferred_shutdown() and shutdown() signals
...
Both can be used as replacement for the ping/pong protocol in order
to let RigoDaemon shutdown.
This is particularly useful for notification applets, in where holding
RigoDaemon instance is suboptimal.
On the other hand, letting RigoDaemon reload may then cause API
mismatches with these notification applets if they don't reload
as well.
2012-04-16 14:50:40 +02:00
Fabio Erculiani
32914b7f58
[RigoDaemon] always send updates_available, even when no updates are available
2012-04-16 10:26:46 +02:00
Fabio Erculiani
63682a7edb
[RigoDaemon] use Gio file monitoring interface instead of plain dnotify
2012-04-16 10:25:39 +02:00
Fabio Erculiani
5fa2dd4780
[RigoDaemon] EINTR can be raised by both OSError and IOError
2012-04-14 13:49:37 +02:00