Fabio Erculiani
96b610a75f
entropy.db: new method setSignatures
2009-04-21 00:45:29 +02:00
Fabio Erculiani
13635788e5
entropy.db: retrieveTrigger, return empty string if no trigger is found
2009-04-21 00:29:34 +02:00
Fabio Erculiani
157a001354
entropy.services.interfaces: remove variable init which causes class
...
to fail loading
2009-04-20 21:57:18 +02:00
Fabio Erculiani
1c46d90cf9
unit testing: add server unit testing module
2009-04-20 20:39:17 +02:00
Fabio Erculiani
707da3675f
entropy.server: ease fake repository init
2009-04-20 20:26:51 +02:00
Fabio Erculiani
125c20754d
entropy.server: improve behaviour when server database is not physically
...
available and when running in fake mode
2009-04-20 20:25:26 +02:00
Fabio Erculiani
f1bb40959c
entropy.server: fix close_server_databases
2009-04-20 20:04:43 +02:00
Fabio Erculiani
0a28af0ee6
unit testing, db, client: cleanly close Client instances
2009-04-20 20:01:26 +02:00
Fabio Erculiani
437bbec087
entropy.server: add support for in-memory repositories
2009-04-20 20:00:46 +02:00
Fabio Erculiani
282924f76a
unit testing, client: add 3 more tests
2009-04-20 18:23:14 +02:00
Fabio Erculiani
a113bafb9a
SystemSettings: fix typo in update method
2009-04-20 18:22:07 +02:00
Fabio Erculiani
8d4aac54c4
entropy.client.interfaces.methods: complete support for in-memory
...
repositories.
In-memory repositories support was partially implemented some time
ago. This commit completes the support.
Please consider that those kind of repositories are never closed
when calling close_all_repositories method and you have to call
remove_repository to effectively destroy all memory data.
Also, consider this feature EXPERIMENTAL and not for daily usage,
in other words, use it with brain ON!
2009-04-20 17:48:04 +02:00
Fabio Erculiani
1d6551f98f
entropy.client.interfaces.dep: fix typo in calculate_world_updates
2009-04-20 17:10:28 +02:00
Fabio Erculiani
089d753c25
entropy.client.interfaces.trigger: drop entropy cache purging trigger,
...
will be moved to ebuild
2009-04-20 16:43:42 +02:00
Fabio Erculiani
a86b68143e
entropy.client.interfaces.methods: fix typo in SystemSettings path
2009-04-19 23:34:36 +02:00
Fabio Erculiani
8c44519a2f
entropy.client.interfaces.client: workaround dependency issue in
...
parsers of ClientSystemSettingsPlugin
2009-04-19 23:23:34 +02:00
Fabio Erculiani
f33b24a9c3
entropy.server.interfaces.mirrors: fix undefined variable in upload_database
2009-04-19 20:32:07 +02:00
Fabio Erculiani
fe4faeaf18
entropy.server: implement ability to disable certain EAPIs.
...
This improvement allows to disable certain EAPIs from being handled
on download/upload, thus on remote repository database sync. This
was warmly awaited from repository maintainers with limited internet
bandwidth.
2009-04-19 20:28:14 +02:00
Fabio Erculiani
fa276f4f1e
entropy.db: check if server plugin is loaded in SystemSettings
2009-04-19 19:54:08 +02:00
Fabio Erculiani
392db878f3
entropy.client: fix typo in ClientSystemSettingsPlugin.misc_parser
2009-04-19 19:52:12 +02:00
Fabio Erculiani
0c5c9879ba
entropy.client: move SystemSettings client parser to ClientSystemSettingsPlugin
2009-04-19 19:50:28 +02:00
Fabio Erculiani
89e6bcc6db
entropy.misc: fix typo in server plugin id retrieval
2009-04-19 19:43:41 +02:00
Fabio Erculiani
46a18b88e4
entropy.server: move server related settings to a separate SystemSettings
...
plugin. Also migrate all the entropy code to use the new SystemSettings
dict variables path.
2009-04-19 19:29:22 +02:00
Fabio Erculiani
759d4876a8
entropy.server.interfaces.main: cache read/write repository database
...
sync calls to avoid running it more than once for every uncached
open_server_repository method call.
2009-04-19 18:47:43 +02:00
Fabio Erculiani
0bf855ed4e
entropy.server.interfaces.main: remove unused package_match_validator_cache
...
dict
2009-04-19 18:45:13 +02:00
Fabio Erculiani
a4044a8ea8
entropy.server.interfaces.main: open_server_repository, remove unused
...
t_ident parameter from database instance load cache
2009-04-19 18:42:14 +02:00
Fabio Erculiani
10f5b704ee
unit testing, client: add empty client unit testing module
2009-04-19 10:35:18 +02:00
Fabio Erculiani
0a901a3de6
entropy.*: move atom matching package masking validation cache to
...
SystemSettings
2009-04-19 10:23:55 +02:00
Fabio Erculiani
e54c027534
unit testing, db: add package sets test, test package masking in test 2
2009-04-19 09:50:19 +02:00
Fabio Erculiani
af5d290883
entropy.client.interfaces.methods: open_memory_database fix
...
When opening a database instance using open_memory_database,
ServiceInterface argument was not passed. This commit fixes it.
2009-04-19 09:48:07 +02:00
Fabio Erculiani
89d4a26f83
entropy.db: initializeDatabase, tune sqlite3 cache size.
2009-04-19 09:46:00 +02:00
Fabio Erculiani
c4f896e9d2
entropy.db: idpackageValidator improvements.
...
trivial changes to idpackageValidator method. SystemSettings is now
a singleton, no need to get it from ServiceInterface
2009-04-19 09:44:56 +02:00
Fabio Erculiani
c7cd3ca2a8
move etpConst['dbconfigprotect'] and etpConst['dbconfigprotectmask']
...
to SystemSettings
2009-04-18 20:27:05 +02:00
Fabio Erculiani
23a184780e
entropy.core: change SystemSettingsPlugin API, should be finalized now.
...
entropy.core: change SystemSettings add_plugin method API
entropy.*: update code accordingly
2009-04-18 20:02:59 +02:00
Fabio Erculiani
7fb086d62e
entropy.const: add SystemSettings plugin identifiers
2009-04-18 19:33:15 +02:00
Fabio Erculiani
f44d124581
unit testing, db: getPackageData trigger_unicode argument is now True
...
by default
2009-04-18 08:14:40 +02:00
Fabio Erculiani
8e20ac099c
entropy.db: getPackageData trigger_unicode is now True by default
...
In the aim of having exactly the same data returned between
entropy.db.LocalRepository.getPackageData and
entropy.client.interfaces.client.Client.extract_package_data, argument
trigger_unicode of the former is now True by default
2009-04-18 08:11:06 +02:00
Fabio Erculiani
5487696276
entropy.client.interfaces.dep: check_package_update, remove debugging
...
output
2009-04-17 23:46:53 +02:00
Fabio Erculiani
b23a19b909
entropy.dump: improve reliability and performance of dumpobj function
2009-04-17 23:37:51 +02:00
Fabio Erculiani
bb468ef7db
entropy.const: const_setup_file, always run chmod
2009-04-17 23:35:51 +02:00
Fabio Erculiani
351cb904a8
entropy.cache: EntropyCacher improvements
...
this is an optimized version of EntropyCacher.
2009-04-17 22:26:33 +02:00
Fabio Erculiani
49d4ab9f73
entropy.client.interfaces.repository: fix check_entropy_updates
...
check_entropy_updates was incorrectly checking if an entropy update
is available
2009-04-17 19:22:47 +02:00
Fabio Erculiani
303fbc5914
entropy.client.interfaces.dep: check_package_update fix
...
when running check_package_update with no repositories available,
it should return that package is not found. This is done by looking
for its key too if get_unsatisfied_dependencies returns something.
2009-04-17 19:20:01 +02:00
Fabio Erculiani
8eeb028ffc
entropy.client.interfaces.methods: set_branch, update API, make
...
method more reliable
2009-04-17 18:54:18 +02:00
Fabio Erculiani
347595a018
entropy.client.interfaces.methods, open_repository improvements and
...
API change.
open_repository method speed has been slightly improved.
move_to_branch has been removed in favour of set_branch method.
2009-04-17 18:19:37 +02:00
Fabio Erculiani
5db8f6d4f1
unit testing, db: add atom matching tests
2009-04-17 07:02:34 +00:00
Fabio Erculiani
3bf9d7370d
unit testing, db: add get_test_package_name and get_test_package_atom
...
functions
2009-04-17 07:01:09 +00:00
Fabio Erculiani
da78a860fd
unit testing: add a new test to the db module
...
this test does the package metadata extraction, database insertion
and retrieval and compares the two dictionaries (the one returned
by the extractor against the one returned by the database)
2009-04-16 06:44:03 +02:00
Fabio Erculiani
326d1c270b
unit testing: make possible to call run script from inside its directory
2009-04-16 06:43:25 +02:00
Fabio Erculiani
12f5145a94
entropy.client.interfaces.metadata: extract_pkg_metadata, clear
...
unused metadata from return output
2009-04-16 06:41:41 +02:00