Commit Graph

9601 Commits

Author SHA1 Message Date
Fabio Erculiani eced32bc9f Release Entropy 1.0_alpha28 2011-03-06 20:07:50 +01:00
Fabio Erculiani 4581481071 [todo] update TODO 2011-03-06 20:06:39 +01:00
Fabio Erculiani 23707d9f64 [sulfur] several speed improvements to the package info window 2011-03-06 19:46:54 +01:00
Fabio Erculiani eb6bc30bdd [entropy.client.interfaces.trigger] make phase property protected 2011-03-06 18:27:48 +01:00
Fabio Erculiani 878c6c61fd [tests] fix tests, move constants test to server module 2011-03-06 18:26:01 +01:00
Fabio Erculiani 0c1f477beb [entropy.client.interfaces.trigger] cleanup Trigger interface class, drop dead code 2011-03-06 18:25:31 +01:00
Fabio Erculiani 47ea1f4bd6 [entropy.client.interfaces.package] remove dead trigger code logic (those condition will be never met nowadays) 2011-03-06 18:23:15 +01:00
Fabio Erculiani d36554888f [entropy.client.interfaces.{methods,sets}] complete code cleanup, review and refactoring (and fix some minor bugs) 2011-03-06 17:56:27 +01:00
Fabio Erculiani 1164896a99 [entropy.tools] use with statement for opening files, avoids resource leakage 2011-03-06 09:15:55 +01:00
Fabio Erculiani 5904459fbb [entropy.tools] dump_entropy_metadata, dump_entropy_metadata: improve for speed using mmap for files < 4mb 2011-03-06 09:07:26 +01:00
Fabio Erculiani 73f60e68a0 [entropy.tools] fix dump_entropy_metadata, contained a resourse leakage on file object 2011-03-05 19:49:46 +01:00
Fabio Erculiani c08cb61645 [entropy.client.interfaces.methods] partially complete API documentation and cleanup 2011-03-05 19:08:23 +01:00
Fabio Erculiani 1741941f81 [entropy.client] Client: add backward compatibility to Client arguments, re-add support for "noclientdb" argument 2011-03-05 18:24:53 +01:00
Fabio Erculiani e899c60e8e [entropy.client.interfaces.methods] _load_repository: do not alter on-disk caching setting (xcache) for package repositories 2011-03-05 17:49:08 +01:00
Fabio Erculiani 580a33738c [entropy.client.interfaces.methods] rename _load_repository_database into _load_repository 2011-03-05 17:48:40 +01:00
Fabio Erculiani db26e2fe4d [todo] update TODO 2011-03-05 16:48:36 +01:00
Fabio Erculiani 3e01553270 [entropy.client] delay UGC interface loading as much as possible 2011-03-05 16:46:24 +01:00
Fabio Erculiani 4f7e968e78 [entropy.client] Client: drop "noclientdb" argument (yay API break), replace with installed_repo, same (reversed) logic. 2011-03-05 16:39:03 +01:00
Fabio Erculiani 1c25615f24 [entropy.client.interfaces.cache] complete module cleanup and polishing 2011-03-05 16:07:34 +01:00
Fabio Erculiani 2df18abc5a [entropy.cache] EntropyCacher: also clear live cache when calling discard() 2011-03-05 15:44:39 +01:00
Fabio Erculiani 87fb1264ce [tests] add 3 EntropyCacher tests 2011-03-05 15:43:40 +01:00
Fabio Erculiani 4b66cf14eb [entropy.cache] EntropyCacher: make sure that once entered the with context, all the writes from different threads are hold until the reentrant lock is released. 2011-03-05 15:41:27 +01:00
Fabio Erculiani 4636ab9469 [entropy] validate repository identifier string against entropy.tools.validate_repository_id() 2011-03-05 15:00:24 +01:00
Fabio Erculiani 0ad09c767b Tagging Entropy version 1.0_alpha27 1.0_alpha27 2011-03-05 13:19:11 +01:00
Fabio Erculiani 460feed400 Release Entropy 1.0_alpha27 2011-03-05 13:19:04 +01:00
Fabio Erculiani 80d794ef9d [sulfur] acquire entropy write lock when loading in ANY case, avoid race condition with in-RAM data structures 2011-03-05 13:09:30 +01:00
Fabio Erculiani fb1e3d253c [entropy.client.interfaces.methods] handle possible race conditions in get_package_action() 2011-03-05 13:04:07 +01:00
Fabio Erculiani 58324c99eb [entropy.tools] move acquire_entropy_locks, release_entropy_locks from text_tools to entropy.tools 2011-03-05 12:58:00 +01:00
Fabio Erculiani 809f3f46fa Revert "[entropy.db] enforce inter-process concurrency, use SQLite3 db files with EXCLUSIVE locking mode."
This reverts commit 4b689cc619.
2011-03-05 12:38:38 +01:00
Fabio Erculiani 7d49974fcf Revert "[entropy.db] EntropyRepository: reduce lock acquisition timeout to 10 seconds"
This reverts commit 668f64a4ee.
2011-03-05 12:38:37 +01:00
Fabio Erculiani aba51202ff Revert "[entropy.exceptions] introduce RepositoryLocked exception, raised (and never caught) if EntropyRepository repository data structures are exclusively locked"
This reverts commit c3d5bbef4d.
2011-03-05 12:38:35 +01:00
Fabio Erculiani a89d9b3a09 Revert "[entropy.db] raise RepositoryLocked if repository is locked, on validate()"
This reverts commit f4648760ba.
2011-03-05 12:38:30 +01:00
Fabio Erculiani f4648760ba [entropy.db] raise RepositoryLocked if repository is locked, on validate() 2011-03-05 12:25:48 +01:00
Fabio Erculiani c3d5bbef4d [entropy.exceptions] introduce RepositoryLocked exception, raised (and never caught) if EntropyRepository repository data structures are exclusively locked 2011-03-05 12:15:16 +01:00
Fabio Erculiani cbbd8392ec [sulfur] drop ETP_NO_PID_HANDLING once entropy.const has been consumed 2011-03-05 11:50:09 +01:00
Fabio Erculiani 668f64a4ee [entropy.db] EntropyRepository: reduce lock acquisition timeout to 10 seconds 2011-03-05 11:47:07 +01:00
Fabio Erculiani 4b689cc619 [entropy.db] enforce inter-process concurrency, use SQLite3 db files with EXCLUSIVE locking mode. 2011-03-05 11:45:37 +01:00
Fabio Erculiani 36be4419a3 [sulfur] prefer ETP_NO_PID_HANDLING to --no-pid-handling to avoid having argv propagated to child process 2011-03-05 11:28:19 +01:00
Fabio Erculiani 828879dd9b [entropy.const] add support to ETP_NO_PID_HANDLING (which is the same of --no-pid-handling argv) 2011-03-05 11:27:48 +01:00
Fabio Erculiani ae32d736fc [entropy.server] make use of CachedRepository too, required in order to be 100% compliant with Entropy Client methods 2011-03-05 00:22:04 +01:00
Fabio Erculiani 96d8deb0d2 [entropy.client] avoid calling close() on cached repositories and make the cache explode, improve constraints on repository objects 2011-03-05 00:04:59 +01:00
Fabio Erculiani cdb8ee7e8b [sulfur] fix imports, do not use dep_getkey from entropy.tools 2011-03-05 00:03:45 +01:00
Fabio Erculiani 53d58728c7 [entropy.tools] drop deprecated functions that have been moved to entropy.dep several months ago 2011-03-04 22:16:09 +01:00
Fabio Erculiani dd6946a9bf [todo] update TODO 2011-03-04 21:18:05 +01:00
Fabio Erculiani 53a871ef0d [entropy.db] EntropyRepository, EntropyRepositoryBase: only return package_id from addPackage() and handlePackage() 2011-03-04 21:14:12 +01:00
Fabio Erculiani a416806047 [entropy.spm] ensure that 'needed' metadatum is always tuple 2011-03-04 21:12:22 +01:00
Fabio Erculiani 96d3513d9d [sulfur] improve speed of package file install 2011-03-04 18:38:34 +01:00
Fabio Erculiani 78851c478e [entropy.client] optimize Client.add_repository() and Client.remove_repository() 2011-03-04 18:37:25 +01:00
Fabio Erculiani e1da60c5f9 [sulfur] add several performance improvements, boot takes 3 seconds less average 2011-03-04 14:11:36 +01:00
Fabio Erculiani 12351fd33e [entropy.client.interfaces.dep] introduce calculate_masked_packages(), fixup calculate_available_packages() code 2011-03-04 13:13:50 +01:00