Since tar-1.24, tar supports hard links, same for python-2.6.6.
However, generate_package() was resetting the file type on the
tarinfo object, causing the extractor (either tar or python tarfile)
to handle the file like it was a 0-size one.
dev-vcs/git package was broken due to this and there are probably
others.
Since tar-1.24, tar supports hard links, same for python-2.6.6.
However, generate_package() was resetting the file type on the
tarinfo object, causing the extractor (either tar or python tarfile)
to handle the file like it was a 0-size one.
dev-vcs/git package was broken due to this and there are probably
others.
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