Commit Graph

258 Commits

Author SHA1 Message Date
Fabio Erculiani f46922e6ca [equo] text_ui: re-acquiring entropy resources locks after exec() is bad
in Entropy Client library functions, we currently check if current
pid equals the one stored inside .using_resources file if lock
cannot be acquired in blocking mode. This is bad because the information
is not 100% reliable. The trick was there in order to allow equo
to exec*() without releasing the file locks. However, there could
be a race between lock and unlock Entropy Client methods that could
cause the former to unlink() a still valid lock file. This happens
now due to the introduction of non-exclusive locking support.
Get rid of all this shit then!
2012-03-14 16:17:18 +01:00
Fabio Erculiani 4fa3cf9e84 [equo] warn user if repositories haven't been updated for a while 2012-02-17 14:14:38 +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
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 d1438c3e66 [equo] force superuser mode for "equo source" 2011-10-27 16:17:07 +02:00
Fabio Erculiani 9a012ce2cd [entropy.const] drop another global variable, etpConst['repositoriesconf'] 2011-10-26 17:28:31 +02:00
Fabio Erculiani fc4452ff0a [entropy] move text_tools module from client/ to entropy package (entropy.cli) 2011-10-18 17:09:48 +02:00
Fabio Erculiani d8cf907287 [entropy.client.interfaces.dep] update get_install_queue() public API 2011-10-05 22:51:12 +02:00
Fabio Erculiani 9f62fc8474 [equo] improve "libtest" output 2011-08-18 20:08:28 +02:00
Fabio Erculiani 3f85e2af46 [equo] implement support for split package files 2011-08-09 12:41:04 +02:00
Fabio Erculiani 3167370543 [equo] fix "equo install" when "Quit" option is selected after license menu. Fix Sabayon bug 2605 2011-08-07 23:56:47 +02:00
Fabio Erculiani be483b7f25 [equo] always use etpUi['interactive'] 2011-08-03 09:35:38 +02:00
Fabio Erculiani 01a1b18250 [entropy.const] add etpUi['interactive'] global setting 2011-08-02 23:13:53 +02:00
Fabio Erculiani 9d53e66b4c [equo] improve handling of --quiet in "equo install" and "equo upgrade" 2011-05-16 07:50:30 +02:00
Fabio Erculiani 83cbfde5e0 [equo] fix equo upgrade "--replay" and "--empty" support 2011-05-16 07:50:29 +02:00
Fabio Erculiani f3e7ac1ce4 [equo] do not respawn equo during "equo upgrade" if --fetch is provided, close bug #2421 2011-05-14 10:16:38 +02:00
Fabio Erculiani 4370cebd6c [equo] text_ui: when calling execv*, use "equo" as application name (this will work in any case)
When debugging entropy client it's common to use "python equo.py",
but this doesn't work well with equo upgrade autorespawn code that
is using execvp()
2011-05-06 12:23:15 +02:00
Fabio Erculiani 81505e123d [equo] fix equo remove --nodeps, see bug #2389 2011-05-01 08:21:56 +02:00
Fabio Erculiani d9f9c709dd [equo] use execvp() instead of execv() 2011-05-01 08:17:41 +02:00
Fabio Erculiani 24f8c8cfd8 [equo] inform user when we're about to respawn equo 2011-04-26 14:09:36 +02:00
Fabio Erculiani e6a75a7fb8 [equo] respawn equo if, after the installation of all the updates, there are more (critical updates case) 2011-04-26 08:35:53 +02:00
Fabio Erculiani 2aa325560d [equo] migrate to the new Entropy Web Services interface 2011-04-07 10:41:28 +02:00
Fabio Erculiani c05b661f1f [equo] make "equo remove" behaviour match "equo install" one when using --ask 2011-04-03 16:50:02 +02:00
Fabio Erculiani dc485e81b9 [equo] beautify error output colors in case of unmatched packages 2011-03-30 21:24:47 +02:00
Fabio Erculiani 9062368b50 [equo] libtest: filter out reinstall packages from those printed to user, close bug #2242 2011-03-12 13:29:29 +01:00
Fabio Erculiani c08cb61645 [entropy.client.interfaces.methods] partially complete API documentation and cleanup 2011-03-05 19:08:23 +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 28456b4121 [entropy.client] drop FileUpdates attribute, replace with Client.PackageFileUpdates() loader 2011-02-07 14:07:42 +01:00
Fabio Erculiani 2ec88d4248 [equo] do not execute "equo config" when --pretend is passed 2010-12-30 12:15:56 +01:00
Fabio Erculiani 08c2979373 [entropy.client.interfaces.dep] when conflicting dependencies are pulled in, in the dep graph, bail out to avoid inconsistencies 2010-11-01 12:56:45 +01:00
Fabio Erculiani 621740f9c8 [equo] remove --nockecksum option from "equo upgrade" and "equo install". Some people are abusing it. 2010-09-14 20:05:01 +02:00
Fabio Erculiani ec94cceacd [entropy.tools] start moving Entropy dependency handling functions to entropy.dep module 2010-09-14 09:49:34 +02:00
Fabio Erculiani 653f5514c8 [equo] behaviour change: automatically bind non-tagged package strings to tagged
A simple use case: "equo install nvidia-drivers" will now pull in
packages providing the tag of the latest installed package if
available. In this way, newer kernel packages (for example) will
not be implicitly pulled in anymore. To override this: just append
a valid tag to your package string "nvidia-drivers#2.6.34-sabayon"
2010-09-06 15:30:49 +02:00
Fabio Erculiani b3716a6555 [equo] warn user about orphaned packages not in repos anymore and orphaned system packages 2010-08-24 13:48:17 +02:00
Fabio Erculiani a09714f49f [entropy*] improve mkdtemp/mkstemp usage 2010-08-10 18:11:38 +02:00
Fabio Erculiani b0a34a77c6 [equo] text_ui: always acquire entropy lock before doing anything 2010-07-31 13:10:30 +02:00
Fabio Erculiani 5c5a6c369a [equo] when running with --pretend, disable --ask 2010-07-30 23:48:30 +02:00
Fabio Erculiani c288cd80b6 [entropy.db] remove reverse dependencies SQL, generate reverse dependencies metadata dynamically (also using on-disk cache)
This avoids repository database write access requirements and
improves reverse dependencies metadata reliability.
2010-07-29 19:34:04 +02:00
Fabio Erculiani 8c7763f774 [entropy.client] move packages cache directory to /var/lib/entropy/client/packages
This allows easier NFS sharing over home networks. Previously,
paths were /var/lib/entropy/packages{-nonfree,-restricted,}.
Please note that if you want to share Entropy packages in a
larger infrastructure, it's advised to rsync the whole Entropy
mirror and serve your cache via FTP/HTTP/FILE protocols adding
the URI to repositories.conf.
2010-07-21 08:57:12 +02:00
Fabio Erculiani bf738f21ca [equo] add "--force-system" option support to "equo remove" 2010-07-19 10:08:46 +02:00
Fabio Erculiani 3cf73d5fa8 [entropy.qa] resolve /usr/lib to /usr/lib64 when matching broken library file in repository 2010-07-13 14:03:35 +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 958be35922 [equo] call EntropyRepository.generateReverseDependenciesMetadata() with verbose=False 2010-05-10 12:01:45 +02:00
Fabio Erculiani e854555db9 [equo/reagent/activator] remove \t usage 2010-05-04 14:22:26 +02:00
Fabio Erculiani 216904c8c7 [entropy.client] fix reverse dependencies calculation in case of system packages 2010-05-03 18:26:51 +02:00
Fabio Erculiani 9bf812b0ae [equo] always show installation queue when calling "equo install" or "equo upgrade" 2010-04-21 21:26:58 +02:00
Fabio Erculiani 5b36cfc43f [equo] add ETP_NONINTERACTIVE env support for upgrade and install functions 2010-04-17 19:26:04 +02:00
Fabio Erculiani e70a7851aa [equo] always try to generate reverse dependencies metadata when done removing (and catch OperationalError) 2010-04-13 19:32:49 +02:00
Fabio Erculiani 73621dfe39 [equo] call entropy.tools.check_required_space passing a valid directory path 2010-04-02 14:28:20 +02:00
Fabio Erculiani 7dfa627188 [equo/reagent/sulfur] use Client.shutdown() instead of Client.destroy() 2010-03-30 19:32:28 +02:00