Commit Graph

11118 Commits

Author SHA1 Message Date
Fabio Erculiani 5da276bfb6 [entropy.core] SystemSettings: __remove_repo_cache() is no longer necessary 2014-01-04 10:10:49 +01:00
Fabio Erculiani d20ce3c2cc [client] update translations 2014-01-03 21:04:06 +01:00
Fabio Erculiani 3238689ad4 [client] update Slovak translation, thanks to Dušan Kazik 2014-01-03 21:03:41 +01:00
Fabio Erculiani 9af5689a13 [entropy.core] SystemSettings: simplify __getitem__ 2014-01-03 20:57:10 +01:00
Fabio Erculiani ab6d1f9fc4 [entropy.core] SystemSettings: lazy load item only if it hasn't been loaded yet 2014-01-03 20:55:36 +01:00
Fabio Erculiani 2053989b27 [entropy.core] SystemSettings: add lazy loading of metadata 2014-01-03 20:25:52 +01:00
Fabio Erculiani 289add075b [Rigo] Update the Slovak translation, thanks to Dušan Kazik 2014-01-03 20:24:27 +01:00
Fabio Erculiani 86f31f2948 Tagging Entropy version 263 263 2014-01-03 16:12:21 +01:00
Fabio Erculiani 7877126107 Release Entropy 263 2014-01-03 16:12:21 +01:00
Fabio Erculiani b0bd765b50 [entropy.db.sqlite] do not acquire the repo lock if it's not strictly needed
Try to avoid to acquire the repository lock in exclusive mode if
it's not strictly needed. We were acquiring the lock in exclusive mode
even when there was nothing to update due to schema changes.
2014-01-03 16:10:33 +01:00
Fabio Erculiani d7d75b4ad9 Tagging Entropy version 262 262 2014-01-03 15:50:06 +01:00
Fabio Erculiani f1de6accef Release Entropy 262 2014-01-03 15:50:06 +01:00
Fabio Erculiani 74f8bb63f5 [entropy.spm] PortagePlugin: update portage.doebuild() call, remove deprecated root argument 2014-01-03 15:45:39 +01:00
Fabio Erculiani c65d713c91 [Rigo] fix NotificationBox message_type keyword argument 2014-01-03 15:12:12 +01:00
Fabio Erculiani d03466ea10 [entropy.db.cache] disable in-RAM cache if total memory is less than 4G 2014-01-03 14:54:04 +01:00
Fabio Erculiani ee48b812ed [entropy.tools] add total_memory() function 2014-01-03 14:53:42 +01:00
Fabio Erculiani cbe42edee9 [RigoDaemon] set the cache policy to EntropyRepositoryCachePolicies.NONE
This greatly reduces the memory consumption of RigoDaemon
2014-01-03 07:36:44 +01:00
Fabio Erculiani 338b3f6cc5 [entropy.db] expose and use the currently set cache policy 2014-01-02 23:00:00 +01:00
Fabio Erculiani b6ed5f9948 [entropy.db.cache] introduce EntropyRepositoryCachePolicies
It is now possible to define a policy for the in-RAM cache through
EntropyRepository constructor or EntropyRepositoryCachePolicies.
2014-01-02 22:58:54 +01:00
Fabio Erculiani ba70572e17 Tagging Entropy version 261 261 2014-01-01 11:03:52 +01:00
Fabio Erculiani 2d22414086 Release Entropy 261 2014-01-01 11:03:52 +01:00
Fabio Erculiani e16ad0a828 [entropy.db.sqlite] catch LockAcquireError in _maybeDatabaseSchemaUpdates
User may not have the privileges to acquire the lock, but we should
not fail here.
2014-01-01 10:58:54 +01:00
Fabio Erculiani 999f0509dd [entropy.db] raise LockAcquireError in case of lock acquire error failures 2014-01-01 10:58:17 +01:00
Fabio Erculiani eda8a7bafb Tagging Entropy version 260 260 2013-12-31 18:01:26 +01:00
Fabio Erculiani f0d437a090 Release Entropy 260 2013-12-31 18:01:25 +01:00
Fabio Erculiani 2f713f73d5 [entropy.db.sqlite] raise timeout to 300 seconds
This will better fit slow disks.
2013-12-31 18:00:35 +01:00
Fabio Erculiani f446b8d05b [RigoDaemon] reimplement Entropy.get_repository()
We need to monkey patch isMainThread in order to return True for
the ActionQueueWorkerThread as well. This avoids EntropySQLRepository
to initialize an infinite number of cleanup monitor threads for a
thread that will never go away (the ActionQueueWorkerThread one).
2013-12-31 17:53:22 +01:00
Fabio Erculiani 1598f5e501 [entropy.*] use get_repository() to return a GenericRepository as well
All the repository classes must go through get_repository() to allow
further monkey patching and other external, API consumer related features.
2013-12-31 17:50:31 +01:00
Fabio Erculiani 4edaf614f4 [entropy.db.sql] in global context, the current thread is always MainThread 2013-12-31 17:38:57 +01:00
Fabio Erculiani 72aa0a07d1 [entropy.*] turn get_repository() into a classmethod 2013-12-31 17:30:29 +01:00
Fabio Erculiani 956b31d05e [entropy.db.sql] add overridable isMainThread method
a MainThread may be a "liquid" concept. A dedicated worker thread
may be considered a "MainThread" from the point of view of EntropySQLRepository.

_start_cleanup_monitor checks whether the calling thread is the MainThread
in order to determine if a cleanup thread should be started joining
the current thread. The problem with this approach is that if our
worker thread is a long lasting thread, we will end up with hundreds
of cleanup monitor threads waiting for the worker thread to terminate.
This will never happen though.

We can now reimplement isMainThread in order to tell the internal
function not to start the cleanup monitor thread also for arbitrary
threads (like the worker thread in RigoDaemon).
2013-12-31 17:24:24 +01:00
Fabio Erculiani 88ea4c7427 [entropy.client.services] fix typo in HTTP arguments for get_documents()
s/revision/rev/
2013-12-31 17:04:36 +01:00
Fabio Erculiani 5ccde22103 [RigoDaemon] clear resources at the end of the action queue 2013-12-31 16:54:34 +01:00
Fabio Erculiani af6fa0d32f [entropy.spm] PortagePlugin: add clear() to API, see documentation 2013-12-31 16:52:52 +01:00
Fabio Erculiani e943b0fe05 Tagging Entropy version 259 259 2013-12-31 16:02:39 +01:00
Fabio Erculiani 0a9fbaf0df Release Entropy 259 2013-12-31 16:02:38 +01:00
Fabio Erculiani 711db81d41 [Rigo] disable recent searches for now, since the feature doesn't respect the use cases 2013-12-31 16:02:09 +01:00
Fabio Erculiani be063dca57 [Rigo] emit application-abort when Application action is cancelled by the user 2013-12-31 15:59:13 +01:00
Fabio Erculiani 2ff820f683 Tagging Entropy version 258 258 2013-12-31 15:17:41 +01:00
Fabio Erculiani cf9fc1b947 Release Entropy 258 2013-12-31 15:17:41 +01:00
Fabio Erculiani 0c09a2f7ca [RigoDaemon] wrap TextInterface.output in order to catch all the messages 2013-12-31 15:16:56 +01:00
Fabio Erculiani f4591d642f [Rigo] use nice unicode headers 2013-12-31 15:11:52 +01:00
Fabio Erculiani f30efd3a8d [Rigo] MANAGING_APPLICATIONS, UPGRADING_SYSTEM no longer use the exclusive lock 2013-12-31 15:01:57 +01:00
Fabio Erculiani 7ec49e5c99 [Rigo] make sure to operate on EntropyResourcesLock from the main thread 2013-12-31 15:01:24 +01:00
Fabio Erculiani d6aa579522 [Rigo] add comment about EntropyResourcesLock requirements 2013-12-31 14:59:11 +01:00
Fabio Erculiani 0346f74c1a [entropy.client.package] catch InterruptError raised by fetch_abort functions 2013-12-31 12:28:29 +01:00
Fabio Erculiani 61f11deef9 Tagging Entropy version 257 257 2013-12-27 19:21:10 +01:00
Fabio Erculiani c5adbc0b20 Release Entropy 257 2013-12-27 19:21:09 +01:00
Fabio Erculiani 86c264a60d [todo] update TODO 2013-12-27 19:16:00 +01:00
Fabio Erculiani b088df88bd [entropy.cache] EntropyCacher: drop CACHE_IDS (\o/) and clear_cache() 2013-12-27 19:15:20 +01:00