Commit Graph

4725 Commits

Author SHA1 Message Date
Fabio Erculiani
1970a36d14 [tests] add another revision bump test 2010-08-20 15:37:02 +02:00
Fabio Erculiani
3fcf104316 [entropy.server] fix revision bumping support
Packages were removed before the revision bumping logic code had
a chance to calculate the new package revision.
2010-08-20 14:14:36 +02:00
Fabio Erculiani
4352f39d1b [tests] server: add package revision bumping test 2010-08-20 14:14:15 +02:00
Fabio Erculiani
a2649b3413 [entropy.db] fix regression in EntropyRepository.retrieveUseflags 2010-08-18 21:42:29 +02:00
Fabio Erculiani
47690cea4b [entropy.db] more list to tuple conversion, see previous commit 2010-08-18 21:41:49 +02:00
Fabio Erculiani
c86ba293f5 [entropy.db] EntropyRepositoryBase: prefer tuple over list when returning objects
This commit drastically changes EntropyRepository API, return object
are now either tuple or frozenset for most functions. This aims to
improve metadata reliability across function calls, making impossible
to change their content. Frozenset and tuple are immutable types.
2010-08-18 20:58:15 +02:00
Fabio Erculiani
72b14eb71e [entropy.db] EntropyRepositoryBase: return frozenset objects instead of set 2010-08-18 17:42:56 +02:00
Fabio Erculiani
9d3f942095 Revert "[entropy.db] copy objects before pushing/popping to/from on-RAM cache"
This reverts commit 38c875a72e.
2010-08-18 15:59:38 +02:00
Fabio Erculiani
38c875a72e [entropy.db] copy objects before pushing/popping to/from on-RAM cache 2010-08-18 15:54:33 +02:00
Fabio Erculiani
4042bf9a4f [entropy.db] EntropyRepository: drop deprecated methods 2010-08-18 15:50:36 +02:00
Fabio Erculiani
20f5be83ae Tagging Entropy version 0.99.49.21 2010-08-18 14:40:50 +02:00
Fabio Erculiani
26c80211a4 [entropy.db] EntropyRepository: rewrite live cache support to improve robustness, cache object is now static 2010-08-18 14:01:58 +02:00
Fabio Erculiani
051ca2bfce [entropy.db] EntropyRepository: fix searchEclassedPackages(), it didn't work 2010-08-18 09:03:16 +02:00
Fabio Erculiani
6523d778a5 [entropy.db.skel] EntropyRepositoryBase.searchEclassedPackages always returns list 2010-08-18 09:02:29 +02:00
Fabio Erculiani
0a3148308b Tagging Entropy version 0.99.49.20 2010-08-17 18:29:53 +02:00
Fabio Erculiani
1b02cbb7e0 [entropy.transceivers] FTP plugin: fix temporary file handling in EntropyFtpUriHandler.download() 2010-08-17 18:27:53 +02:00
Fabio Erculiani
f2e4a8f2b2 [entropoy.client.interfaces.package] add docstring 2010-08-17 17:47:24 +02:00
Fabio Erculiani
91d9476758 [entropy.db] EntropyRepository: introduce more on-RAM caching, improving Entropy Client queries speed 2010-08-16 20:08:38 +02:00
Fabio Erculiani
f225a7dab5 [entropy.fetchers] fix MultipleUrlFetcher output update function 2010-08-16 19:58:09 +02:00
Fabio Erculiani
526da6ba81 [entropy.client] trivial string update 2010-08-16 19:49:24 +02:00
Fabio Erculiani
16ef7d892e [entropy.db] EntropyRepository: fix bogus implementation of searchKeySlot 2010-08-16 19:29:26 +02:00
Fabio Erculiani
59d499df6f [entropy.client] when waiting in Client.wait_resources() and resources get unlocked, throw all cache away 2010-08-16 18:31:19 +02:00
Fabio Erculiani
11126779c2 [entropy.db] EntropyRepository: taint live cache items when updating them 2010-08-15 23:23:59 +02:00
Fabio Erculiani
01784d79e1 [entropy.db] update API (changed searchNameCategory arguments) and 2x speed of atomMatch() by caching several functions 2010-08-15 17:29:29 +02:00
Fabio Erculiani
46ba83ace2 [entropy.db] EntropyRepository.retrieveName: use cursor object returned by execute() 2010-08-15 16:59:57 +02:00
Fabio Erculiani
c719ec4f74 [entropy.db] EntropyRepository.addPackage: clear cache at the beginning of the function 2010-08-15 16:25:26 +02:00
Fabio Erculiani
3749ed5486 [entropy.db] EntropyRepository: remove unused attribute 2010-08-15 16:21:59 +02:00
Fabio Erculiani
6b8b7ab3d1 [entropy.spm] PortagePlugin: improve unpack_xpak() reliability 2010-08-15 15:41:32 +02:00
Fabio Erculiani
0d6dbc3f0a [entropy.server] replace "database" with "repository" in ui messages 2010-08-15 15:32:25 +02:00
Fabio Erculiani
80c85b55d8 [entropy.client.interfaces.repository] move back post update repository hook execution to Repository class 2010-08-15 15:18:01 +02:00
Fabio Erculiani
b7a8dfc30a [entropy.server] Server.add_packages_to_repository: fix blacklisted dependencies handling 2010-08-15 00:41:17 +02:00
Fabio Erculiani
ab0cc98a52 [entropy.server] repo_blacklist object must be list 2010-08-14 22:32:39 +02:00
Fabio Erculiani
dd622c18e5 [entropy.server] add support for per-package dependency blacklist 2010-08-14 19:18:17 +02:00
Fabio Erculiani
24bb03cffe Tagging Entropy version 0.99.49.12 2010-08-14 08:42:06 +02:00
Fabio Erculiani
a6aa09f63d [entropy.server] fix regression, remove duplicated os.remove() 2010-08-14 08:41:11 +02:00
Fabio Erculiani
eb771eee0a Tagging Entropy version 0.99.49.11 2010-08-14 02:34:51 +02:00
Fabio Erculiani
018b851ce7 [entropy.client.interfaces.package] remove unneeded logging 2010-08-14 02:23:56 +02:00
Fabio Erculiani
73174f96fd [entropy.client.interfaces.package] properly move preremove step after install
In order to avoid issues with Source Package Managers requiring stricter
conditions of live filesystem during install/remove steps, improve
package phases by separating install and removal, preremove and
postremove code.
2010-08-14 02:17:47 +02:00
Fabio Erculiani
0a014d32fb [tests] also run const tests 2010-08-12 20:58:25 +02:00
Fabio Erculiani
2c46e97d4f Tagging Entropy version 0.99.49.10 2010-08-12 20:51:22 +02:00
Fabio Erculiani
a09714f49f [entropy*] improve mkdtemp/mkstemp usage 2010-08-10 18:11:38 +02:00
Fabio Erculiani
cc01fee65b [entropy.server] dep_rewrite: make possible to remove dependencies by providing "-" as replacement 2010-08-10 08:41:13 +02:00
Fabio Erculiani
3f141d7340 [entropy.client.interfaces.dep] improve dep calculation performance for tagged packages by providing tags in reverse alphabetical order 2010-08-10 08:41:13 +02:00
Fabio Erculiani
bc03f7ef48 [entropy.client] make possible to disable differential repository update feature 2010-08-09 20:37:28 +02:00
Fabio Erculiani
91adc88f1b [entropy.client.interfaces.db] remove dead code, EntropyRepository.generateReverseDependenciesMetadata does not exist anymore 2010-08-09 20:37:28 +02:00
Fabio Erculiani
7888475850 [entropy.db] EntropyRepository: rename validateDatabase() to validate(), deprecate validateDatabase() 2010-08-08 11:06:29 +02:00
Fabio Erculiani
0c7e75c131 [entropy.output] write warning and error messages to stderr by default 2010-08-08 11:02:15 +02:00
Fabio Erculiani
2fb3f559cb [entropy.client.interfaces.cache] when checksum() fails in _all_repositories_checksum() report to user 2010-08-08 10:51:50 +02:00
Fabio Erculiani
e7ef727840 [entropy.db] EntropyRepository: when calling validateDatabase() also call checksum() 2010-08-08 10:46:07 +02:00
Fabio Erculiani
cd62ed35b1 [entropy.const] const_regain_privileges: do not raise ValueError if process is already privileged 2010-08-07 19:11:04 +02:00