Commit Graph

251 Commits

Author SHA1 Message Date
Fabio Erculiani 9cf8a57b53 [services] add portage-repository-converter script example 2011-02-14 23:38:44 +01:00
Fabio Erculiani 8b636b6820 [services] portage-repository-converter: add lock handling 2011-02-14 19:39:38 +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 f9226e6e3d [entropy] some python3.x fixes 2011-02-10 15:44:14 +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 df3bb8005d [entropy] drop repository manager code, R.I.P. 2011-02-09 19:22:20 +01:00
Fabio Erculiani 3d92e7d657 [services] kernel-switcher: add opengl switcher, improve application output 2011-02-02 01:45:57 +01:00
Fabio Erculiani ea95b269cc [services] kernel-switcher: add some post-install warnings 2011-01-31 23:19:44 +01:00
Fabio Erculiani c743476dd0 [services] kernel-switcher: setup kernel symlink through eselect 2011-01-31 23:09:58 +01:00
Fabio Erculiani 4d39d5804d [services] add kernel-switcher tool - a kernel switcher utility
This should make many users happy :-)
2011-01-29 22:35:03 +01:00
Fabio Erculiani 55d995e010 [services] entropy-pkgdelta-generator: create deltas only for files smaller than 10Mb (bsdiff mem usage: max(17*n,9*n+m)+O(1) ) 2010-12-16 16:22:01 +01:00
Fabio Erculiani ab1e111502 [services] entropy-pkgdelta-generator: add --lock support
Add --lock <lock_file_path> switch in order to make possible to
control the execution of the tool and avoid to have multiple instances
running.
2010-12-12 10:12:02 +01:00
Fabio Erculiani a4122850c4 [entropy.tools] update API of generate_entropy_delta() and generate_entropy_delta_file_name(), improve reliability of fetching the right file. 2010-12-11 23:01:00 +01:00
Fabio Erculiani 5697c2ee3c [services/entropy-pkgdelta-generator] add --quiet support 2010-12-08 15:55:06 +01:00
Fabio Erculiani 74e7a5102e [services/entropy-pkgdelta-generator] skip invalid package file names silently 2010-12-07 21:05:36 +01:00
Fabio Erculiani 6cefc18268 [services/entropy-pkgdelta-generator] use etpConst .md5 extension constant and remove stale .md5 files too on cleanup 2010-12-07 20:57:49 +01:00
Fabio Erculiani f78e69056e [services/entropy-pkgdelta-generator] also generate .md5 file 2010-12-07 20:54:59 +01:00
Fabio Erculiani 33e36a30d9 [services] add entropy package deltas generator tool 2010-12-07 20:14:16 +01:00
Fabio Erculiani b2aea57d87 [services] slightly improve repositories-services-daemon.example code 2010-11-11 18:59:41 +01:00
Fabio Erculiani cfbb0909c5 [services] add client-updates-daemon wrapper (which sets LC_*), move real executable to /usr/libexec, close bug #1880 2010-10-10 17:55:21 +02:00
Fabio Erculiani 2ab35b3c3c [services] client-updates-daemon: always run unprivileged, gain privileges only when strictly required 2010-08-07 19:35:07 +02:00
Fabio Erculiani fe18e38f32 [entropy] several QA improvements and API changes (trivial, but still) 2010-07-31 15:14:54 +02:00
Fabio Erculiani 6993271143 [services] client-updates-daemon: only release pid lock if it has been acquired 2010-07-31 12:41:39 +02:00
Fabio Erculiani ab8dc91766 [services] client-updates-daemon: fix available updates signalling when Sulfur is running
Sulfur holds Entropy general lock, which caused the daemon to not
run its duties whenever the installed packages repository is changed
(due to pkg updates/install/removal). Just skip the lock check since
it is not going to alter the content of available repositories in
any case.
2010-07-27 15:52:49 +02:00
Fabio Erculiani c8e877422e [services] print traceback when server fails to load 2010-07-25 13:11:35 +02:00
Fabio Erculiani 774320f824 [services] update entropy services example code 2010-07-25 12:40:22 +02:00
Fabio Erculiani 09b5b23251 [services] update service-test-daemon example code 2010-07-25 12:32:51 +02:00
Fabio Erculiani 6b21e0d46f [server,services] avoid race condition when calling Client.shutdown() in finally context 2010-07-21 18:18:34 +02:00
Fabio Erculiani 3c6e2ccaed [client-tracker-packages-miner] goodbye 2010-07-21 18:17:14 +02:00
Fabio Erculiani 3ab1d8db4b [entropy.client] complete implementation of older entropy downloaded packages cleanup 2010-07-20 18:24:06 +02:00
Fabio Erculiani ca912cac63 [entropy.client,services] add automatic (disabled by default) old cached packages removal 2010-07-19 12:57:39 +02:00
Fabio Erculiani 9c6782e21c [entropy.client.interfaces.repository] major Repository class rework
:: move repository update logic inside EntropyRepositoryBase.update()
   static method
:: provide two new static methods EntropyRepositoryBase.revision()
   and EntropyRepositoryBase.remote_revision() that have to be
   implemented by subclasses if they are supporting fetching local
   or remote revision.
:: several minor code quality improvements
2010-06-26 19:15:02 +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 0a0cc78a5a [client-updates-daemon] add new method "trigger_startup_check"
It tells the daemon to not update repos but just return the updates list
2010-05-24 11:32:55 +02:00
Fabio Erculiani ff0af58109 [entropy.services] client-updates-daemon: tweak timings 2010-05-07 14:58:07 +02:00
Fabio Erculiani c59edaffe0 [entropy.client.interfaces.methods] complete module refactoring 2010-03-23 20:46:38 +01:00
Fabio Erculiani 0fafa52dbc [entropy.client] more refactoring work in entropy.client.interfaces.methods 2010-03-14 15:54:41 +01:00
Fabio Erculiani 38c8f33f61 [entropy.client] more refactoring work in entropy.client.interfaces.methods 2010-03-13 22:19:44 +01:00
Fabio Erculiani e10132b387 [entropy.const] use /var/run/entropy for storing pid/lock file data
In this way, files get cleaned up every boot. No need for entropy_client
init script anymore
2010-03-03 16:56:22 +01:00
Fabio Erculiani f510cca108 [entropy.client.interfaces.dep] complete module refactoring 2010-03-03 15:26:52 +01:00
Fabio Erculiani 2513d0fb59 [services] fix client-updates-daemon dbus methods signatures 2010-03-02 08:04:34 +01:00
Fabio Erculiani b0e96e2b25 [services] tweak client-updates-daemon timers 2010-03-01 11:56:14 +01:00
Fabio Erculiani ac406f8d4a [services] fix Entropy Updates Notification Daemon, add exception handler 2010-02-25 17:20:17 +01:00
Fabio Erculiani 438a4968de [magneto] implement keepalive ping/pong between dbus service and client to improve service reliability 2010-02-11 15:05:07 +01:00
Fabio Erculiani 2c28389358 [services] client updates daemon, disable debug by default 2010-02-08 13:47:14 +01:00
Fabio Erculiani e382178925 [services] add Tracker installed packages metadata miner (first chunk) 2010-02-08 13:46:39 +01:00
Fabio Erculiani 06df34f41d [entropy.client] drop .clientDbconn in favour of installed_repository() 2010-01-30 18:37:39 +01:00
Fabio Erculiani 0453fd8bcd [entropy] when subclassing Entropy Client interface, properly set singleton class 2010-01-25 02:09:54 +01:00
Fabio Erculiani 477e135134 [entropy/equo] implement bash completion (yay!), move CLI related functions to text_tools module 2010-01-12 15:52:12 +01:00
Fabio Erculiani 8f94c4a8b4 [entropy.output] TextInterface: rename updateProgress into output 2010-01-11 17:38:55 +01:00