Commit Graph

175 Commits

Author SHA1 Message Date
Fabio Erculiani
af2cb248bc [tests] fixup hardlink test 2011-02-20 19:51:52 +01:00
Fabio Erculiani
65f741078d [tests+ add hardlink test 2011-02-20 19:43:24 +01:00
Fabio Erculiani
61b398dd38 [tests] fix server tests 2011-02-14 17:13:29 +01:00
Fabio Erculiani
cc36139bfc [entropy.db] uniform searchName, searchNameCategory, searchCategory, make them return frozenset instead of list 2011-02-13 10:11:12 +01:00
Fabio Erculiani
7738f688a6 [entropy.db] introduce EntropyRepositoryBase.repository_id() 2011-02-10 11:42:19 +01:00
Fabio Erculiani
df3bb8005d [entropy] drop repository manager code, R.I.P. 2011-02-09 19:22:20 +01:00
Fabio Erculiani
23285e6c77 [entropy.server] out default_repository, in .repository() 2011-02-05 18:15:49 +01:00
Fabio Erculiani
ab93aee68b [entropy.server] complete the robustness work on the package, completely drop repo=None from function args 2011-02-05 18:07:09 +01:00
Fabio Erculiani
57a3f2713e [tests] improve db.test_search test 2011-02-02 01:25:52 +01:00
Fabio Erculiani
87ca1452b8 [entropy.db] EntropyRepositoryBase: hide temporary property and provide temporary() getter 2011-01-23 18:41:57 +01:00
Fabio Erculiani
342b48cdb4 [entropy.db] rename EntropyRepositoryBase.xcache to _caching and introduce caching()
Hide internal details regarding cache status handling. Rename
.xcache property to ._caching and provide a getter that returns
the cache setting status (caching()).
2011-01-23 13:09:03 +01:00
Fabio Erculiani
6bdb040e0c [entropy.dep] DependencyStringParser: introduce support for preferred package matches in or-dependencies selection
NOTE: this will go into the future Graph refactoring.
When calculating or-dependencies, it is now possible to provide
a list of preferred package matches that can be used to prioritize
certain packages over others.
2011-01-17 12:51:47 +01:00
Fabio Erculiani
4f563dd9c3 [entropy.db] rename EntropyRepositoryBase "reponame" attribute to "name", keeping backward compat. 2011-01-17 00:55:24 +01:00
Fabio Erculiani
d2326171a4 [entropy.db] make some order among repository identifier metadatum storage inside EntropyRepository*
reponame attribute is now storing with 100% fidelilty the repository
identifier used to instantiate the EntropyRepositoryBase instance
through open_repository() and similar.
2011-01-17 00:28:42 +01:00
Fabio Erculiani
2243d82d18 [entropy.dep] update API of expand_dependencies, make possible to match multiple repos 2011-01-16 20:01:17 +01:00
Fabio Erculiani
daf486d01d [tests] add test_entropy_delta, testing entropy.tools.generate_entropy_delta() and entropy.tools.apply_entropy_delta() 2010-12-16 16:21:18 +01:00
Fabio Erculiani
ae8cc9bfcf [entropy.spm] PortagePlugin: improve speed of get_package_sets(False) as used by entropy.server 2010-12-08 16:47:17 +01:00
Fabio Erculiani
dba41146dc [tests] make content_safety test more reliable on different platforms 2010-11-26 23:08:30 +01:00
Fabio Erculiani
c66d610c7f [tests] add content_safety metadata test 2010-11-26 14:59:25 +01:00
Fabio Erculiani
da8e1435de [entropy.dep] implement base classes for conditional dependency string evaluation 2010-11-20 17:38:50 +01:00
Fabio Erculiani
614bf6d436 [tests] add small sleep() to mitigate unittest multithreading bugs 2010-11-06 19:57:53 +01:00
Fabio Erculiani
ad1611c2fd [tests] add new EntropyRepository SQL schema tests 2010-10-04 19:18:01 +02:00
Fabio Erculiani
2a531dd014 [entropy.db] introduce SQL schema changes in EntropyRepository (small API break)
New SQL schema changes have been introduced to EntropyRepository,
keeping them disabled by default (older Entropy client have to be
flushed out first). The aim is to improve performance avoiding
extra SQL joins on baseinfo and extrainfo tables, thus removing
"categories", "flags", "licenses" tables (which missed external
keys also).
This upgrade is completely backward compatible and new schema is detected
at runtime, so the whole class can work with old and new one transparently.
The downside is that listPackageIdsInCategoryId() is no longer available and
has been replaced by a more generic listPackageIdsInCategory().
This new SQL schema will be hopefully enabled before the end of 2011.
2010-10-03 11:33:16 +02:00
Fabio Erculiani
770721dae4 [tests] add EntropyRepository.getSetting() test 2010-09-29 20:51:28 +02:00
Fabio Erculiani
a55ada4fca [tests] when calling Client.shutdown(), SystemSettings plugins are not removed now, so tests require to call destroy() first, then shutdown() 2010-09-25 12:05:57 +02:00
Fabio Erculiani
32f251feae [entropy.db] EntropyRepository.createAllIndexes: call "ANALYZE" stmt after indexes creation 2010-09-22 20:29:33 +02:00
Fabio Erculiani
caff8cc759 [entropy.db] rename EntropyRepositoryBase.closeDB() to EntropyRepositoryBase.close() keeping backward compatibility 2010-09-21 14:03:44 +02:00
Fabio Erculiani
c26d90fb20 [entropy.tools] move entropy package strings manipulation functions to entropy.dep 2010-09-15 22:06:39 +02:00
Fabio Erculiani
ec94cceacd [entropy.tools] start moving Entropy dependency handling functions to entropy.dep module 2010-09-14 09:49:34 +02:00
Fabio Erculiani
d553108df8 [entropy.spm] PortagePlugin: fix simple Entropy "or" dependencies generator code 2010-09-13 17:38:16 +02:00
Fabio Erculiani
a4a52e62d8 [tests] add another Portage related SPM test 2010-09-13 13:40:07 +02:00
Fabio Erculiani
23b970efa1 [tests] add a new live cache unit test 2010-09-11 15:42:18 +02:00
Fabio Erculiani
f71f7d2cc8 [tests] spm: add package sets test 2010-09-08 00:30:32 +02:00
Fabio Erculiani
1198a24290 [entropy.*] remove "eclasses" metadata support
"eclasses" package metadata is not in use in Entropy and is too
tight with Portage. Dropping.
2010-09-04 15:26:16 +02:00
Fabio Erculiani
778fa6c23e [tests] test "content safety" metadata 2010-08-30 12:50:26 +02:00
Fabio Erculiani
821d810aa3 [entropy.db/entropy.spm] introduce content safety metadata collection (sha256, mtime)
The following changes add more security features to Entropy repository
files. Every package will have new security metadata associated, like
sha256 and mtime of package files. Once all packages will contain
such information, the feature can be used, for example, to determine
if a system has been compromised by changing critical executables.
This is not a replacement for rootkit tools such as rkhunter or chkrootkit,
but instead, the base support for their file checking mechanism.

Entropy Client support (equo, mainly) is planned in the near future.
2010-08-28 17:07:15 +02:00
Fabio Erculiani
1970a36d14 [tests] add another revision bump test 2010-08-20 15:37:02 +02:00
Fabio Erculiani
4352f39d1b [tests] server: add package revision bumping test 2010-08-20 14:14:15 +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
0a014d32fb [tests] also run const tests 2010-08-12 20:58:25 +02:00
Fabio Erculiani
7888475850 [entropy.db] EntropyRepository: rename validateDatabase() to validate(), deprecate validateDatabase() 2010-08-08 11:06:29 +02:00
Fabio Erculiani
4a5f3a5e20 [entropy.const] add built-in drop/gain privileges functions 2010-08-07 16:06:38 +02:00
Fabio Erculiani
571beaaf12 [entropy.db] several EntropyRepository changes, listed below
- overridden handlePackage, addPackage, removePackage in respective
  entropy.client.interfaces.db classes in a proper, secure way.
- overridden maskFilter in entropy.client.interfaces.db, the final
  goal will be removing its logic from EntropyRepository and move
  it to AvailablePackagesRepository only.
- removed any evidence of "client_repo" EntropyRepositoryPlugin(s)
  metadatum.
2010-08-01 00:29:18 +02:00
Fabio Erculiani
749a1b8263 [tests] db: add reverse dependencies test 2010-07-29 19:33:45 +02:00
Fabio Erculiani
5f09d66a1e [entropy.tools] remove unused functions 2010-07-04 18:59:45 +02:00
Fabio Erculiani
bda36cabbd [entropy.tools] rename pkgsplit() to _pkgsplit and update package split logic 2010-07-01 14:17:59 +02:00
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
942b8f804f [tests] add another package test to server mode 2010-05-12 08:38:50 +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
a17aa4830f [entropy.tools] add is_valid_package_tag function 2010-03-30 14:27:53 +02:00