Commit Graph

184 Commits

Author SHA1 Message Date
Fabio Erculiani 6cdede57ab [entropy.cli] remove deprecated acquire_entropy_locks, release_entropy_locks 2012-02-15 19:36:28 +01:00
Fabio Erculiani 1ae1088983 [entropy.cache] put EntropyCacher to sleep when there's nothing to do
Use a semaphore to signal the worker thread if there's something to do,
otherwise the whole thread should just sleep and avoid to poll every
N seconds.
2012-02-13 16:26:39 +01:00
Fabio Erculiani affcf20425 [entropy.i18n] rename P_() into ngettext().
intltool-update doesn't understand ngettext function exposed as
P_().
2012-02-13 14:14:45 +01:00
Fabio Erculiani e914763b6d [entropy.client.services] implement ram-caching for get_downloads()
get_downloads() was left uncovered from ram-caching of the responses,
in contraddiction to get_votes() and get_available_downloads(), for
example.
2012-02-13 08:50:44 +01:00
Sławomir Nizio a8420b5ad5 [i18n] use ngettext in some places where it's most useful 2012-02-12 15:47:58 +01:00
Fabio Erculiani 7b0c95078b [entropy.client.interfaces.db] do not use "&>", which is bash only
This commit fixes bug #3022
2012-02-10 14:07:48 +01:00
Fabio Erculiani dafc861554 [entropy.spm] PortagePlugin._pkg_foorm: catch OSError during env setup
ebuild environment setup function for pkg_{prerm,postrm} can raise
OSError during os.makedirs(). Better catch it and handle the failure
nicely so that the user can take proper measures to fix it, instead
of completely bailing out with garbageish text.
2012-02-10 13:55:39 +01:00
Fabio Erculiani eca401649d [entropy.fetchers] UrlFetcher: handle HTTP response without Content-Length
It can happen that HTTP servers (or those accessed via Proxy) do not
actually provide Content-Length information in the response.
This caused UrlFetcher to keep __remotesize = 0, which means that
the same thought that the file has been fully downloaded already
under some circumstances.
2012-02-09 21:55:52 +01:00
Fabio Erculiani 056f552dab [entropy.client] implement Client.atom_search
As of today, both Equo and Sulfur implemented their own search
functions because the API didn't provide any direct support for
searching through all the repositories. atom_search() now offers
a basic way to do this, without reinventing the weel every time
in consumer code.
2012-02-08 15:27:57 +01:00
Fabio Erculiani 0ceb055608 Release Entropy 1.0_rc87 2012-02-03 23:06:41 +01:00
Fabio Erculiani 6782d4581a [entropy.spm] PortagePlugin: fix NEEDED.ELF.2 parsing
It can happen that NEEDED.ELF.2 file contains invalid entries,
more specifically, entries that are directories.
2012-02-03 10:57:19 +01:00
Fabio Erculiani b2a0029655 Release Entropy 1.0_rc86 2012-02-01 19:57:15 +01:00
Fabio Erculiani 95ddc907a7 [entropy.const] make possible to override the default arch using /etc/entropy/.arch 2012-02-01 19:56:12 +01:00
Fabio Erculiani 0594b8df4a Release Entropy 1.0_rc85 2012-01-29 12:11:17 +01:00
Fabio Erculiani ea26cfb1da [entropy.server] document pitfalls in scan_package_changes() usage 2012-01-26 20:24:15 +01:00
Fabio Erculiani 45bd00aff9 [entropy.client] do not pull in packages already up-to-date if digest == "0"
If the installed packages repository has been regenerated manually,
some entries may contain invalid digest values. Given this, the same
value is forced to be equal to "0" so that we can skip the check during
dep calculation if an entry like that is found.
2012-01-24 20:45:48 +01:00
Fabio Erculiani a7b2ff1301 [entropy.db] _migrateBaseinfoExtrainfo: fix foreign_keys usage, and drop all indexes
Using pragma inside executescript() won't work and foreign_keys were
kept enabled, resulting in extrainfo table being wiped.
At the same time, dropping all the indexes before starting dramatically
improves the execution speed.
2012-01-24 18:33:33 +01:00
Fabio Erculiani 7170a1e13c [entropy.db] fix baseinfo indexes creation for baseinfo_extrainfo_2010 schema 2012-01-24 17:10:07 +01:00
Fabio Erculiani e480256b33 Release Entropy 1.0_rc84 2012-01-24 16:40:57 +01:00
Fabio Erculiani 9e7055f6be [entropy.server,eit] split push from pull (in repo sync)
From now on, any push request will not have the side effect of
pulling new repo metadata if required, and vice versa.
2012-01-24 15:08:32 +01:00
Fabio Erculiani c169f0e4b2 [entropy.graph] Graph.get_adjacency_map: hold the original data
Graph caching must hold copies of cache objects instead of giving
them away for free and risk of having them polluted or even completely
cleared out under its own chair.

Example:
$ equo remove linux-sabayon:3.1 [--deep]

The --deep version doesn't pull in all the reverse deps due to
Graph.solve() being called twice in
entropy.client.interfaces.dep's _generate_reverse_dependency_tree()
when deep = True.

Fixes bug #2989
2012-01-23 12:50:26 +01:00
Fabio Erculiani 1a83081f0d Release Entropy 1.0_rc83 2012-01-15 18:25:07 +01:00
Fabio Erculiani e3622615af [entropy.tools] add /etc/ld.so.conf.d support
Packages started to install files inside /etc/ld.so.conf.d/, this
commit adds support for reading files in the above mentioned
directory.
2012-01-15 18:18:33 +01:00
Fabio Erculiani b481a2338a [entropy.qa] /etc/ld.so.conf can be unavailable, do not check for it 2012-01-15 18:18:00 +01:00
Fabio Erculiani 52640c1be3 Release Entropy 1.0_rc82 2012-01-12 11:08:00 +01:00
Fabio Erculiani c6795d3cf8 [entropy.spm] PortagePlugin: always discard FEATURES=ccache when calling doebuild() 2012-01-12 10:55:24 +01:00
Fabio Erculiani 970978ee97 [entropy.i18n] add P_(), for supporting gettext plural forms 2012-01-02 19:45:11 +01:00
Fabio Erculiani 217ae14345 Release Entropy 1.0_rc81 2011-12-28 10:07:06 +01:00
Fabio Erculiani e6ecf02ee3 [entropy.server] _run_package_files_qa_checks is I/O bound, no need for parallelization 2011-12-27 08:23:09 +01:00
Fabio Erculiani bf327ce01e [entropy.const] install debug signal handler on SIGUSR1, thread dump on SIGQUIT 2011-12-27 08:03:05 +01:00
Fabio Erculiani 146343107d [entropy.const] make possible to override ROOT from env using ETP_ROOT 2011-12-23 16:21:16 +01:00
Fabio Erculiani bb008eaa22 [entropy.spm] PortagePlugin: vardb._plib_registry might be None (Portage 2.1) 2011-12-21 21:58:09 +01:00
Fabio Erculiani 769638eb60 Release Entropy 1.0_rc80 2011-12-21 13:54:25 +01:00
Fabio Erculiani 8958f947d5 [entropy.const] rework automatic ARM architecture and keywords detection (will be moved to repositories.conf) 2011-12-12 15:21:52 +01:00
Fabio Erculiani 86db7bc8f5 [entropy.spm] PortagePlugin: add support for NEEDED.ELF.2 2011-12-02 17:54:33 +01:00
Fabio Erculiani 790fe3b1e1 [entropy.spm] PortagePlugin: keep INHERITED and FEATURES metadata entries (used by portage-repository-converter) 2011-12-02 17:39:47 +01:00
Fabio Erculiani e5da3c3063 [entropy.spm] PortagePlugin: INHERITED is not used 2011-12-02 12:06:10 +01:00
Fabio Erculiani 5fa3e58679 [entropy.spm] PortagePlugin: drop FEATURES usage completely
Removing "splitdebug" from FEATURES if splitdebug is disabled is
pointless and not really needed. Better leave FEATURES untouched.
Moreover, pkgcore doesn't provide FEATURES at all.
2011-12-02 12:03:18 +01:00
Fabio Erculiani 6e0396aa03 [entropy.core.settings.base] spit more user-friendly error messages 2011-12-02 11:36:35 +01:00
Fabio Erculiani 8756ccc65f [entropy.transceivers] use os.EX_OK 2011-12-02 11:36:19 +01:00
Fabio Erculiani 7c4a7a2cc6 Release Entropy 1.0_rc79 2011-11-30 19:11:18 +01:00
Fabio Erculiani 906e7781ea [entropy.spm] PortagePlugin: make sure to always filter out FEATURES=noauto before calling doebuild() 2011-11-29 17:42:16 +01:00
Fabio Erculiani 54de559224 [entropy.server] fix undefined reference in _update_rss 2011-11-28 23:13:13 +01:00
Fabio Erculiani 2c55308018 Release Entropy 1.0_rc78 2011-11-24 16:33:38 +01:00
Fabio Erculiani fd96d36a71 [entropy.client.interfaces.dep] fix dependency calculation when ASAP scheduling is enabled (default)
internal levels dict must be reinitialized every time deptree object
is actually modified. At the same time, when making room on a certain
deptree key (moving the entries to another key), make sure to always
drop the dep item that is going to be written back.

"equo install --empty --pretend lighttpd" triggered the issue.
Thanks to micia for reporting.
2011-11-24 16:09:30 +01:00
Fabio Erculiani 563cf65ed6 [entropy.client.interface.dep] fix typo in comment 2011-11-24 16:08:05 +01:00
Fabio Erculiani 5dec2edb5d Release Entropy 1.0_rc77 2011-11-23 22:37:50 +01:00
Fabio Erculiani 1d46c240e3 [entropy.server] initialize_repository: make sure to have all the repository directories in place 2011-11-23 22:35:08 +01:00
Fabio Erculiani 98f33451b4 [entropy.core.settings.base] catch any possible exception when calling generic_file_content_parser 2011-11-18 16:27:18 +01:00
Fabio Erculiani f436f65f53 [entropy.server] fix typo in codecs_fdopen() usage 2011-11-14 12:02:48 +01:00