Commit Graph

4712 Commits

Author SHA1 Message Date
Fabio Erculiani
5421de7b74 [entropy.spm,entropy.db] add default use dependencies support 2011-03-21 16:12:51 +01:00
Fabio Erculiani
0bcd6e0f86 Release Entropy 1.0_alpha32 2011-03-20 12:34:26 +01:00
Fabio Erculiani
d00750f79b [entropy.spm] PortagePlugin: drop old portage bug workaround 2011-03-20 12:18:16 +01:00
Fabio Erculiani
b1e75b7e0d Release Entropy 1.0_alpha31 2011-03-18 07:20:53 +01:00
Fabio Erculiani
02713f8dd9 [entropy.server] ServerEntropyRepositoryPlugin: always sync package sets at least once per run 2011-03-14 18:33:52 +01:00
Fabio Erculiani
4e4c290b0e [entropy.server] ServerRepositoryStatus: add package sets sync status handling 2011-03-14 18:33:51 +01:00
Fabio Erculiani
c749d22379 [entropy.client.interfaces.client] catch entropy.db.exceptions.Error in _get_package_categories 2011-03-14 15:37:39 +01:00
Fabio Erculiani
a8b85641d9 [entropy.core] SystemSettings: simplify repositories.conf parsing code 2011-03-13 19:33:45 +01:00
Fabio Erculiani
1b80a2d13e [entropy.spm] PortagePlugin: do not use internal Portage _global_updates() function but rather emaint frontend 2011-03-13 19:20:40 +01:00
Fabio Erculiani
4066e41781 [entropy.server] before giving up with repository sync due to missing sets, try to resync them and check again 2011-03-13 17:49:09 +01:00
Fabio Erculiani
9f5588740f [entropy.spm] PortagePlugin: do not run _global_updates() for ROOT != "/", Portage limitation. 2011-03-12 14:44:39 +01:00
Fabio Erculiani
067b31315d [entropy.dump] make possible to enforce custom permission bits to dumpobj() 2011-03-11 20:16:37 +01:00
Fabio Erculiani
0f5df2aadb [entropy.cache] EntropyCacher: use atexit to register the stop() function when start() is called 2011-03-10 18:34:20 +01:00
Fabio Erculiani
5ca9768494 [entropy.client.interfaces.package] fix typo 2011-03-10 17:24:29 +01:00
Fabio Erculiani
c90b5b1655 [entropy.client.interfaces.package] improve speed of package unpacking
Originally, a fork was needed (through spawn_function()) because
there was a memory leak inside tarfile python module.
As of today, the issue doesn't seem to exist anymore and so,
the cost of fork() should be avoided completely.
2011-03-09 17:40:21 +01:00
Fabio Erculiani
8ae1290b9d Release Entropy 1.0_alpha30 2011-03-08 10:17:14 +01:00
Fabio Erculiani
12897bc143 [entropy.spm] from SpmPlugin, drop Portage-centric unused methods 2011-03-08 09:47:53 +01:00
Fabio Erculiani
5261e3715c [entropy.server] when using Spm.server/interfaces/main.py() always handle KeyError exception 2011-03-08 09:45:37 +01:00
Fabio Erculiani
d3ba6f6886 [entropy.db.skel] _runTreeUpdatesMoveAction: enforce destination package name to key
Even if Gentoo specs only allow package keys to be used in
move statements inside profiles/updates. We can easily support
full versioned dependencies (like: app-foo/foo:0 or app-foo/foo-1.2.3).
In this case however, key_to has to be filtered out using dep_getkey()
2011-03-08 07:38:56 +01:00
Fabio Erculiani
db39f49bcd [entropy.dep] add handy function that strips out category part from dependency string 2011-03-07 21:27:28 +01:00
Fabio Erculiani
c0bfbb9775 Release Entropy 1.0_alpha29 2011-03-07 19:52:37 +01:00
Fabio Erculiani
7ff82e776f [entropy.client.interfaces.dep] filter out list of removable packages by excluding those with reverse dependencies 2011-03-07 19:42:40 +01:00
Fabio Erculiani
c9993797ed [entropy.client.interfaces.db] add minor debug output 2011-03-07 19:42:04 +01:00
Fabio Erculiani
1bb28abd12 [entropy.exceptions] fix typo in text 2011-03-07 19:41:44 +01:00
Fabio Erculiani
31161836b0 [entropy.server] fix small rendering glitch 2011-03-07 11:53:26 +01:00
Fabio Erculiani
eced32bc9f Release Entropy 1.0_alpha28 2011-03-06 20:07:50 +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
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
460feed400 Release Entropy 1.0_alpha27 2011-03-05 13:19:04 +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