Commit Graph

7141 Commits

Author SHA1 Message Date
Fabio Erculiani
de08eeed90 [services] portage-repository-converter-executor: trivial fix 2011-02-15 00:10:28 +01:00
Fabio Erculiani
0a790d73ad [services] update default perms of portage-repository-converter-executor 2011-02-14 23:41:27 +01:00
Fabio Erculiani
9cf8a57b53 [services] add portage-repository-converter script example 2011-02-14 23:38:44 +01:00
Fabio Erculiani
4c02640562 Tagging Entropy version 1.0_alpha15 1.0_alpha15 2011-02-14 22:42:14 +01:00
Fabio Erculiani
f141a26784 Release Entropy 1.0_alpha15 2011-02-14 22:42:01 +01:00
Fabio Erculiani
6b3baaefc3 [entropy.db] improve the improbability of getting cache collisions in atomMatch() cache
<i>as the "birthday paradox" says</i> ;-)
2011-02-14 22:20:16 +01:00
Fabio Erculiani
9c6ede2d9b [entropy.db] EntropyRepositoryBase.__atomMatchValidateCache(): fix bug in validation code (check rc after type validation) 2011-02-14 21:52:15 +01:00
Fabio Erculiani
8b636b6820 [services] portage-repository-converter: add lock handling 2011-02-14 19:39:38 +01:00
Fabio Erculiani
aad340926c [sulfur] change .desktop icon name to "Entropy Store" 2011-02-14 18:36:59 +01:00
Fabio Erculiani
4825bcd522 [services] add portage-repository-converter
This tool aims to easily convert a Portage packages repository,
including attached overlays, to Entropy repository database format,
which is (currently, but well abstracted) SQLite3 based.
This is a very lowlevel tool that allows to use the EntropyRepositoryBase
API in order to search, match and retrieve metadata off snapshots of
Portage packages repository.

Usage is simple:

    $ portage-repository-converter sync <path to entropy database file>

If the Entropy database file already exists, a differential sync will
be executed between Portage and the database itself.
This would allow to keep your Entropy-based metadata up-to-date in
the following way:

    $ emerge --sync
    $ portage-repository-converter sync /tmp/portage.entropy.sqlite
    $ sleep <a few hours>
    $ emerge --sync
    # sync again
    $ portage-repository-converter sync /tmp/portage.entropy.sqlite

How to read metadata off /tmp/portage.entropy.sqlite ?
Using Python and Entropy API!

    >>> from entropy.client.interfaces import Client
    >>> client = Client()
    >>> repo = client.open_generic_repository("/tmp/portage.entropy.sqlite")
    >>> repo.atomMatch("sys-libs/db")
    >>> repo.searchPackages("something")
    >>> repo.close()
    >>> client.shutdown()

For more information regarding Entropy API, please visit:
http://www.sabayon.org/entropy/api/docs
2011-02-14 18:16:45 +01:00
Fabio Erculiani
61b398dd38 [tests] fix server tests 2011-02-14 17:13:29 +01:00
Fabio Erculiani
667e5e5ece [entropy.db] EntropyRepositoryCacher add keys() 2011-02-14 17:13:19 +01:00
Fabio Erculiani
399c63a6ad [entropy.spm] PortagePlugin: trivial improvements 2011-02-13 19:41:44 +01:00
Fabio Erculiani
0d93fee168 [entropy.output] TextInterface.input_box(): python3.x fixes 2011-02-13 19:40:14 +01:00
Fabio Erculiani
fb2b565ac1 [entropy.db] EntropyRepository: rewrite static cache management, make it smarter and less prone to memleaks (Python3.x bug) 2011-02-13 14:08:14 +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
bf4dc1cd37 [entropy.graph] implement Graph.destroy() to free circular references (was causing interesting memleak) 2011-02-11 19:06:22 +01:00
Fabio Erculiani
2d7d1675b2 [entropy.spm] another set of python3.x fixes 2011-02-11 18:22:24 +01:00
Fabio Erculiani
3643b4affb [equo] when running with --debug, enter pdb if an exception is raised 2011-02-11 18:07:52 +01:00
Fabio Erculiani
531c0d4754 [entropy.tools] make get_traceback() work with python3.x 2011-02-11 18:02:39 +01:00
Fabio Erculiani
7473c63a8f [entropy.spm] some Python3.x compatibility fixes 2011-02-11 12:28:08 +01:00
Fabio Erculiani
a80a82f8ff [entropy] even more python3.x fixes (yeah I am getting bored) 2011-02-10 21:02:25 +01:00
Fabio Erculiani
c5d13d0c60 [entropy] some more misc python3.x fixes 2011-02-10 19:57:22 +01:00
Fabio Erculiani
65ddc4e412 [entropy.db] EntropyRepository.contentDiff: small python3.x fix 2011-02-10 18:15:51 +01:00
Fabio Erculiani
d9d055b64d [entropy.spm] some python 3.x fixes 2011-02-10 18:08:12 +01:00
Fabio Erculiani
7857f9244c [entropy.client] open fd in ascii mode, that's enough 2011-02-10 16:15:16 +01:00
Fabio Erculiani
eb2e6c65f0 [entropy.security] avoid resources leaking (file descriptors) 2011-02-10 16:14:54 +01:00
Fabio Erculiani
9fcacbd3b5 [entropy.security] a small python3.x fix 2011-02-10 16:08:34 +01:00
Fabio Erculiani
f9226e6e3d [entropy] some python3.x fixes 2011-02-10 15:44:14 +01:00
Fabio Erculiani
d7925b8322 [entropy.transceivers] python3.x fixup 2011-02-10 15:27:10 +01:00
Fabio Erculiani
71353d6c00 [entropy.output] make TextInterface inherit object 2011-02-10 15:26:49 +01:00
Fabio Erculiani
6b0f16bffd [entropy.const] python3.x fixup 2011-02-10 15:26:29 +01:00
Fabio Erculiani
7738f688a6 [entropy.db] introduce EntropyRepositoryBase.repository_id() 2011-02-10 11:42:19 +01:00
Fabio Erculiani
4a3d6b0792 [equo] complete text_query refactoring, API for text apps there should be almost stable 2011-02-10 11:34:47 +01:00
Fabio Erculiani
155accecba [equo] more refactoring work on text_query 2011-02-10 09:08:09 +01:00
Fabio Erculiani
ce2842258a [equo] first chunk of cleansing inside text_query module 2011-02-10 00:41:51 +01:00
Fabio Erculiani
685b865453 [entropy.spm] PortagePlugin: set changelog to None if changelog is not available (don't convert None to string!) 2011-02-09 23:34:53 +01:00
Fabio Erculiani
df3bb8005d [entropy] drop repository manager code, R.I.P. 2011-02-09 19:22:20 +01:00
Fabio Erculiani
3e2136024e [entropy.client] drop urlFetcher and MultipleUrlFetcher properties, make them protected 2011-02-09 17:58:20 +01:00
Fabio Erculiani
fb3d5e1a03 [magneto] implement execution lock, avoid multiple magneto applets popping up 2011-02-08 13:35:47 +01:00
Fabio Erculiani
9bee5444c3 [entropy.client] do not overwrite pid file lock before having acquired the lock, open it using a+ and use truncate() 2011-02-08 13:20:33 +01:00
Fabio Erculiani
f01f077b7b [entropy.const] do not overwrite pid file lock before having acquired the lock, open it using a+ and use truncate() 2011-02-08 13:19:26 +01:00
Fabio Erculiani
97690b77a0 [magneto] drop duplicated autostart .desktop file, not needed anymore 2011-02-07 23:08:00 +01:00
Fabio Erculiani
a1671b89d1 [entropy] don't use hardcoded errno values, but rather use errno module 2011-02-07 14:25:33 +01:00
Fabio Erculiani
27076ee143 [entropy.security] catch OSError(5) on install_key when listing keys 2011-02-07 14:16:10 +01:00
Fabio Erculiani
28456b4121 [entropy.client] drop FileUpdates attribute, replace with Client.PackageFileUpdates() loader 2011-02-07 14:07:42 +01:00
Fabio Erculiani
4201ddb5d9 [entropy.client.interfaces.loaders] some more documentation 2011-02-07 13:43:11 +01:00
Fabio Erculiani
1408390849 [equo] export "repo vacuum" from entropy-server, fixup mirrors calls (rename db- to repo-) 2011-02-07 13:17:20 +01:00
Fabio Erculiani
bba1eac20a [activator] tweak description of "equo repo vacuum" 2011-02-07 12:26:46 +01:00
Fabio Erculiani
7e7e48acd1 [activator] rename "Database" to "Repository" 2011-02-07 12:24:05 +01:00