Commit Graph

2219 Commits

Author SHA1 Message Date
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
Fabio Erculiani d79b2e494b entropy.client.interfaces.metadata: extract_pkg_metadata, fix changelog
metadatum must be unicode() and not str(). Moreover, print warning
on Unicode conversion errors.
2009-04-16 06:36:43 +02:00
Fabio Erculiani 8b961e23ca entropy.db: insertSignatures, fix insertion.
signatures is not a list but a dict now.
2009-04-16 06:30:22 +02:00
Fabio Erculiani fa2b4a79f1 entropy.db: addPackage, always accept spm_phases when it's != None 2009-04-16 06:29:31 +02:00
Fabio Erculiani 878dfda4e4 entropy.client.interfaces.metadata: extract_pkg_metadata, etpapi metadatum must be int(), as returned by entropy.db.getPackageData 2009-04-16 06:24:46 +02:00
Fabio Erculiani 81900d5913 entropy.client.interfaces.metadata: extract_pkg_metadata, sources metadatum must be a set(), as returned by entropy.db.getPackageData 2009-04-16 06:24:29 +02:00
Fabio Erculiani 24adfb012a entropy.client.interfaces.metadata: extract_pkg_metadata, eclasses metadatum must be a set(), as returned by entropy.db.getPackageData 2009-04-16 06:22:36 +02:00
Fabio Erculiani ee363147c7 entropy.client.interfaces.metadata: extract_pkg_metadata, useflags metadatum must be a set(), as returned by entropy.db.getPackageData 2009-04-16 06:21:40 +02:00
Fabio Erculiani beba5d5c2f entropy.client.interfaces.metadata: extract_pkg_metadata, keywords
metadatum must be a set(), as returned by entropy.db.getPackageData
2009-04-16 06:19:01 +02:00
Fabio Erculiani 6d8d3e48f6 entropy.client.interfaces.metadata: extract_pkg_metadata
conflicts metadatum must be a set, as returned by entropy.db.getPackageData
2009-04-16 06:16:27 +02:00
Fabio Erculiani 55c2293b98 entropy.client.interfaces.metadata: extract_pkg_metadata, 'spm_phases'
metadatum can be None if SPM one is not found/available.
2009-04-16 06:11:42 +02:00
Fabio Erculiani 13bbcad92e entropy.db: addPackage should add 'atom' metadatum to returning metadata 2009-04-16 06:06:19 +02:00
Fabio Erculiani 0834281bd1 entropy.client.interfaces.metadata: extract_pkg_metadata, 'provide'
metadatum must be set() and not list()
2009-04-16 06:05:32 +02:00
Fabio Erculiani 105776c26c test suite: add sample package 2009-04-16 06:05:05 +02:00
Fabio Erculiani d5b564d271 test suite: add misc functions module 2009-04-16 06:04:33 +02:00
Fabio Erculiani 1f4fb7b243 SystemSettings: make it working on readonly filesystems too 2009-04-15 16:12:12 +02:00
Fabio Erculiani cd3eeba238 ClientSystemSettingsPlugin: keep repository metadata inside SystemSettings
always ready to use.
2009-04-14 23:50:37 +02:00
Fabio Erculiani 670be42e8d entropy.client.interfaces.methods: new method is_repository_connection_cached 2009-04-14 23:48:10 +02:00
Fabio Erculiani 62ec9712b9 entropy.client.interfaces.methods: open_repository, remove t_ident
usage
2009-04-14 23:46:58 +02:00
Fabio Erculiani 5bd8daa754 entropy.client.interfaces.methods: put back repository config protect
setup into load_repository_database. a more permanent fix will follow
shortly.
2009-04-14 23:44:46 +02:00
Fabio Erculiani f4a7b8a97f entropy.client.interfaces.methods: clear SystemSettings and reset
repository cache properly every time is needed
2009-04-14 23:21:40 +02:00
Fabio Erculiani 9bd552689e entropy: when entropy.client.interfaces.methods' reopen_client_repository
is called, make sure all the repository databases are closed
2009-04-14 23:15:12 +02:00
Fabio Erculiani 8086f42e62 entropy.client.interfaces.package: small syntax style update 2009-04-14 23:01:55 +02:00
Fabio Erculiani 3572a0f224 entropy.client.interfaces.methods: improve open_repository reliability
When calling open_repository on an already loaded database instance when
SystemSettings.clear() was called, it could happen to have unitialized
metadata around (configprotect and configprotectmask), so always check this
2009-04-14 22:59:14 +02:00
Fabio Erculiani f944343275 unit testing module: run returns status != 0 if errors occured 2009-04-14 09:04:14 +02:00
Fabio Erculiani 3185cdf8d4 unit testing: print more output for each test run 2009-04-13 23:36:03 +02:00