Commit Graph

50 Commits

Author SHA1 Message Date
Fabio Erculiani e1e76d5b28 [entropy.db] first chunk of major entropy.db code updates, create abstract class, move logic there, update API 2010-06-07 17:56:05 +02:00
Fabio Erculiani 37fb97de01 [entropy*] kill SystemSettings attribute of Entropy Client and Entropy Server instances 2010-04-14 14:56:17 +02:00
Fabio Erculiani 21faf38121 [entropy.db/entropy.spm] complete per-package mimetype support
Per package file association info are now stored inside the
repository database. This allows for instance, to query a
mimetype and get a list of applications able to handle it, or
to get a list of mimetypes a package is aware of.
2010-03-29 18:16:01 +02:00
Fabio Erculiani 9b25177b22 [tests] db: fix EntropyCacher status handling 2010-03-28 22:51:58 +02:00
Fabio Erculiani 38c8f33f61 [entropy.client] more refactoring work in entropy.client.interfaces.methods 2010-03-13 22:19:44 +01:00
Fabio Erculiani e6b841b02f [tests] update the way test scripts are executed when directly called 2010-03-07 22:15:50 +01:00
Fabio Erculiani d676b73f9e [tests] improve db module tests speed 2010-02-13 19:23:17 +01:00
Fabio Erculiani 23962962e5 [tests] fix wrong mkstemp() call in db.py test 2010-02-13 12:59:19 +01:00
Fabio Erculiani 9da7ad8cdd [tests] db: use mkstemp instead of trying to write to $PWD 2010-02-11 18:30:04 +01:00
Fabio Erculiani c5dd3a7a49 [entropy.db] remove more evidences of old branch management code 2010-02-05 14:20:12 +01:00
Fabio Erculiani 004d1055b2 [entropy.db] EntropyRepository: rename retrieveVersionTag to retrieveTag 2010-02-04 20:24:49 +01:00
Fabio Erculiani 93b052d096 [tests] kill running threads before quitting 2010-02-04 17:45:23 +01:00
Fabio Erculiani d7f9783ba6 [entropy.client/entropy.server] ditch any reference to sqlite ":memory:" connections, break API 2010-02-02 07:22:47 +01:00
Fabio Erculiani 91e49c96b6 [entropy.db] API change, methods names polishing 2010-02-01 14:50:12 +01:00
Fabio Erculiani f5b016a146 [entropy.db] make EntropyRepository process-safe and thread-safe at the same time
This is kinda experimental but it seems to work just fine and, at the moment
there are no multithreaded accesses to EntropyRepository.
This patch makes write mutex in EntropyRepository useless because EntropyRepository
will automatically allocate new connections and cursors for every new
thread/pid coming in, avoiding to leak open files around.
SQLite3 is thread-safe when using one connection per thread, so... here it is!
2010-01-29 23:39:42 +01:00
Fabio Erculiani 2fc1c3db17 [tests] fix test_db_insert_compare_match_tag test 2010-01-29 14:30:16 +01:00
Fabio Erculiani b58be877a4 [tests] add tagged packages match test 2010-01-28 13:13:00 +01:00
Fabio Erculiani a2d6e75ad5 [tests] add EntropyRepository cache storage tests 2010-01-09 01:06:59 +01:00
Fabio Erculiani 8244e414dd [unittest] add a new test to the suite, this will test PROVIDE metadata 2009-12-11 22:13:22 +01:00
Fabio Erculiani ec2be8949d [unittest] add more verbosity to test modules 2009-11-09 18:27:09 +01:00
Fabio Erculiani b455f4c7d3 [unittest] add --debug option handling 2009-11-09 14:03:22 +01:00
Fabio Erculiani 39cdd527ed [unittest] improve entropy.db test suite 2009-11-05 22:30:26 +01:00
Fabio Erculiani 4d4280ce07 [unittest] fix db tests 2009-10-06 18:56:40 +02:00
Fabio Erculiani 33c005e668 [entropy] fix common idioms 2009-10-05 14:08:34 +02:00
Fabio Erculiani e452421c7f [entropy] fix whitespace after comma 2009-10-05 14:05:32 +02:00
Fabio Erculiani f4a8901512 [unittest] import fixes 2009-10-05 14:02:45 +02:00
Fabio Erculiani b991b04920 [unittest] more Python 3.x porting work 2009-10-05 10:07:15 +02:00
Fabio Erculiani 6441b0d0ef [unittest] fix import statement 2009-10-04 18:01:35 +02:00
Fabio Erculiani 71825e9c76 [entropy] migrate codebase to Python 2.6 only syntax 2009-09-30 19:53:47 +02:00
Fabio Erculiani c0d9b5e6f4 [entropy.core] Split entropy.core, introduce generic plugin loader
:: split entropy.core and move SystemSettings stuff to
   entropy.core.settings (and prepare external plugin support)
:: add EntropyPluginFactory generic class to entropy.core that
   will be used Entropy-wide to load external Entropy plugins
:: make entropy.spm Plugin Factory using entropy.core.EntropyPluginFactory
2009-08-30 18:59:35 +02:00
Fabio Erculiani 9359693cc5 [entropy.spm] make PortagePlugin to use SpmPlugin API, major API change 2009-08-29 21:31:43 +02:00
Fabio Erculiani 89062bf8f3 [entropy.db] complete API docstring and refactoring work 2009-08-15 22:27:41 +02:00
Fabio Erculiani 50f86ec9bd [tests] add EntropyRepository contentDiff test 2009-08-06 15:47:02 +02:00
Fabio Erculiani 9ea147d0db [entropy.db] API docs + addPackage() API changes
:: add more reviewed API documentation
:: addPackage() now does not do anything else but adding packages
   to repository, which is the intended original behaviour.
2009-08-03 23:10:59 +02:00
Fabio Erculiani a77411a736 [entropy.db] reorganize Entropy database arch., add docstrings 2009-07-18 09:39:46 +02:00
Fabio Erculiani 5fafa4cc6c [entropy.db] API documentation + creation of base class for Entropy repository interfaces (EntropyRepository)
EntropyRepository will contain all the implementation independent
routines of Entropy repository interfaces (actually in LocalRepository)
2009-06-17 07:50:16 +02:00
Fabio Erculiani f0771eb3a7 unit testing, db: add multi match tests 2009-05-25 22:59:55 +02:00
Fabio Erculiani 76998f6c30 move Spm metadata extractor to entropy.spm (was in entropy.client) 2009-05-24 17:50:06 +02:00
Fabio Erculiani 43c94a6507 unit testing: append correct sys.path to every test class 2009-05-15 13:43:31 +02:00
Fabio Erculiani e7ca06ce96 unit testing, db: add test for insertLicenses with str input 2009-05-04 17:41:55 +02:00
Fabio Erculiani e894e9254f unit testing, db: add another package metadata handling test 2009-04-29 15:42:15 +02:00
Fabio Erculiani 472366c966 unit testing, db: add 2 new tests 2009-04-29 14:52:17 +02:00
Fabio Erculiani 0a28af0ee6 unit testing, db, client: cleanly close Client instances 2009-04-20 20:01:26 +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 f44d124581 unit testing, db: getPackageData trigger_unicode argument is now True
by default
2009-04-18 08:14:40 +02:00
Fabio Erculiani 5db8f6d4f1 unit testing, db: add atom matching tests 2009-04-17 07:02:34 +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 3185cdf8d4 unit testing: print more output for each test run 2009-04-13 23:36:03 +02:00
Fabio Erculiani 8ac1b1ea85 add unit testing module 2009-04-13 23:32:41 +02:00