Commit Graph

127 Commits

Author SHA1 Message Date
Fabio Erculiani
028193158b [services] entropy-updates-service: make both threads, daemon ones 2011-06-12 23:03:46 +02:00
Fabio Erculiani
1d47dfd019 [services] entropy-updates-service: add more debugging output, redirect stderr/stdout to log file 2011-05-03 18:25:43 +02:00
Fabio Erculiani
80dfbcc0f2 [entropy.services] goodbye old and ugly RPC service, R.I.P. 2011-04-14 15:17:54 +02:00
Fabio Erculiani
c46cc1a54f [services] kernel-switcher: when kernel_tag is not available, try to guess it
When no reverse dependencies are available, it's impossible to guess
the correct kernel tag. So, kernel_tag is None, which causes issue
when used in execve() (of course). So, handle the case trying to read
package configuration file containing the proper "uname -r" output required
to switch /usr/src/linux to the newly installed kernel using
"eselect kernel set".
Please note that this file (RELEASE_LEVEL) is quite new, and older
packages might have been shipped without it.

Also see bug #2227
2011-03-07 21:27:49 +01:00
Fabio Erculiani
58324c99eb [entropy.tools] move acquire_entropy_locks, release_entropy_locks from text_tools to entropy.tools 2011-03-05 12:58:00 +01:00
Fabio Erculiani
53a871ef0d [entropy.db] EntropyRepository, EntropyRepositoryBase: only return package_id from addPackage() and handlePackage() 2011-03-04 21:14:12 +01:00
Fabio Erculiani
4a241f46c6 [services] repository-webinstall-generator: fix typo 2011-03-03 09:00:44 +01:00
Fabio Erculiani
b5416d0a90 [services] repository-webinstall-generator: make possible to regenerate all the .etp package files through --regen 2011-03-03 08:55:30 +01:00
Fabio Erculiani
a1229a2eb5 [services] repository-webinstall-generator: properly set .etp file repository architecture 2011-03-03 08:47:13 +01:00
Fabio Erculiani
ad78d4e2d5 [services] add repository-webinstall-generator-executor example file 2011-03-02 15:01:20 +01:00
Fabio Erculiani
79c2bac529 [services] repository-webinstall-generator: simplify execute_app(), payload detection and mktemp not required 2011-03-01 15:12:45 +01:00
Fabio Erculiani
43298ac0d8 [services] repository-webinstall-generator: implement LRU cache strategy 2011-02-27 23:29:39 +01:00
Fabio Erculiani
334665006f [services] repository-webinstall-generator: increase ram cache size 2011-02-27 23:21:17 +01:00
Fabio Erculiani
5adf368da3 [services] repository-webinstall-generator: remove pdb hook 2011-02-27 22:41:03 +01:00
Fabio Erculiani
e06c0bde52 [services] repository-webinstall-generator: also consider reverse dependencies when bumping or generating new .etp files 2011-02-27 22:36:39 +01:00
Fabio Erculiani
99d5cca0ee [services] repository-webinstall-generator: divide et impera, split code into sub-functions 2011-02-27 18:01:32 +01:00
Fabio Erculiani
d9b6a48194 [services] repository-webinstall-generator: improve speed even more (add caching), add repository tree updates metadata to repo 2011-02-26 19:47:15 +01:00
Fabio Erculiani
868d6e4303 [services] repository-webinstall-generator: no need to get content metadata, improve speed 2011-02-26 19:32:47 +01:00
Fabio Erculiani
dad927648e [services] repository-webinstall-generator: ensure that indexing is always True 2011-02-26 18:31:56 +01:00
Fabio Erculiani
58c9ae01b8 [services] repository-webinstall-generator: improve mkstemp usage, disable read-only
Read-only is disabled to allow createAllIndexes() to do its job.
This is required in order to improve the performance.
2011-02-26 18:25:25 +01:00
Fabio Erculiani
8e89209f99 [services] repository-webinstall-generator: some minor performance tweaks 2011-02-26 18:23:05 +01:00
Fabio Erculiani
79e13cdaa2 [services] add repository-webinstall-generator
This is a server-side tool that makes possible to generate
executable packages that can be redistributed via web, which once
extracted install the encapsulated packages
2011-02-26 17:54:40 +01:00
Fabio Erculiani
b4379c6219 [entropy.tools] provide general purpose NB EX file locking/unlocking functions 2011-02-26 12:53:46 +01:00
Fabio Erculiani
2c4e5cacc3 [services] portage-repository-converter: return 1 if there is nothing to sync 2011-02-15 12:24:42 +01:00
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
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