Commit Graph

139 Commits

Author SHA1 Message Date
Fabio Erculiani
c26b8fb971 [solo.commands.command] use the Entropy class object to acquire the Entropy Resources Lock 2013-12-05 22:14:18 +01:00
Fabio Erculiani
82b85704ce [entropy.output] make TextInterface methods classmethods
This makes possible to fix a circular dependency in the Entropy
Resources Lock management methods
2013-12-05 21:36:30 +01:00
Fabio Erculiani
57918399e4 [solo.commands.manage] inform user about preserved libraries 2013-11-27 19:05:24 +01:00
Fabio Erculiani
c459d63fcc [client] translate file paths on "equo remove" to packages.
"equo remove /usr/bin/k3b" will remove app-cdr/k3b
2013-11-27 18:29:03 +01:00
Fabio Erculiani
fe649e5f2b [solo.commands.preservedlibs] drop atom argument from PreservedLibs() 2013-11-27 17:36:24 +01:00
Fabio Erculiani
7cd5228b3a [solo.commands.preservedlibs] inform user about libraries owned by packages in gc 2013-11-27 17:27:39 +01:00
Fabio Erculiani
9d733afefb [solo.commands.preservedlibs] drop unused imports 2013-11-27 17:27:23 +01:00
Fabio Erculiani
b548f4b357 [solo.commands.preservedlibs] add new command "preservedlibs" 2013-11-27 12:51:16 +01:00
Fabio Erculiani
f10b9341f9 [client] migrate solo to the new PackageActionFactory API 2013-11-23 13:53:40 +01:00
Fabio Erculiani
08e4b487bf [entropy.db] API change, handlePackage(forcedRevision -> revision) 2013-11-18 15:09:28 +01:00
Fabio Erculiani
594656e03d [solo] try to append a category to package names in case of no match
When matching strings like "entropy" against the available packages
repositories, entropy may not be able to find the right package due
to name collisions (packages with same name and different categories).
So, try to guess the category part by looking at the installed packages
repository.
2013-10-24 11:16:17 +02:00
Fabio Erculiani
4313baf4b6 [solo.utils] enlightenatom: add slot substring support 2013-10-11 16:16:46 +02:00
Fabio Erculiani
0b7423a7fd [solo.commands.*] properly use the return value of _install_action() 2013-10-08 16:00:55 +02:00
Fabio Erculiani
d5dc497dcc [solo.commands.conf] drop access() usage 2013-09-18 08:52:18 +02:00
Fabio Erculiani
e836630db4 [solo.commands.ugc] drop access() usage 2013-09-18 08:51:30 +02:00
Fabio Erculiani
95e291bd62 [solo.utils] drop access() usage 2013-09-18 08:50:46 +02:00
Fabio Erculiani
577fcf32c6 [solo.main] use _exit() rather than SystemExit() exception.
The former is reentrant and safe to be used in signal handlers.
2013-09-05 19:21:51 +02:00
Fabio Erculiani
385c2934c5 [client] deal with Python bug #16308 2013-08-23 10:57:36 +02:00
Fabio Erculiani
a0cd08d1de [solo.commands.query] use quiet=True with calculate_updates()
This avoids tainting stdout with unwanted output
2013-08-23 10:41:48 +02:00
Fabio Erculiani
cd55a7a043 [solo.commands.command] call shutdown() before releasing locks
shutdown() calls EntropyCacher.sync() and stop()...
2013-08-10 11:03:24 +02:00
Fabio Erculiani
df6c716983 [solo.commands.update] drop download accounting for repositories, no longer used 2013-05-27 10:24:37 +02:00
Fabio Erculiani
4149e6efff [solo.commands.match] add "--showdownload" to "equo match"
While we don't have an "equo metadata" command yet, this command
may be used to determine the package file name belonging to a package
2013-05-16 11:37:03 +02:00
Fabio Erculiani
93debd109d [equo] wait indefinitely to acquire the resources lock using a spinner 2013-05-03 09:12:04 +02:00
Fabio Erculiani
0ffe7a9f9f [equo] implement "equo repo rename" command 2013-05-01 23:51:23 +02:00
Fabio Erculiani
3c926c6651 [solo.commands.match] restore Python3 compatibility 2013-04-01 12:38:39 +01:00
Fabio Erculiani
3668a5169b [equo] equo repo add: uniform strings, s/repository identifier/repository name/ 2013-03-30 12:49:03 +00:00
Fabio Erculiani
25a0d68d65 [equo] fix "equo repo add" arguments parsing, catch AttributeError during arguments validation 2013-03-30 12:36:01 +00:00
Fabio Erculiani
ab57f906bf [equo] utils: if sha1 or sha256 hashes are not available, print N/A 2013-03-29 17:41:38 +00:00
Fabio Erculiani
d6295b3e00 [entropy*] create const_mkstemp() as tempfile.mkstemp() wrapper.
using /tmp as TMPDIR is a no go, since on modern systems, /tmp is on
tmpfs with a very limited amount of fs size assigned. Use /var/tmp/entropy
(or /var/tmp as fallback) instead.
2013-03-29 12:09:17 +00:00
Fabio Erculiani
d89f15d760 [solo.commands.rescue] fix "equo rescue generate"
The database file was not written on disk because Entropy forwarded
any API call to the in-RAM database. If we generate a generic repository
and then reload the entropy installed packages one everything will work
as expected.
2013-03-28 18:53:26 +00:00
Fabio Erculiani
c5250594d1 [equo] rewrite "equo repo add" command line interface, looks much better now 2013-03-23 19:20:22 +00:00
Fabio Erculiani
b559affa42 [equo] fix typo in "equo update", fix bug 4107 2013-03-22 10:54:02 +00:00
Fabio Erculiani
831237b7fc [entropy.server] insert the package SHA1 checksum into the file name
This commit partially reverts commit d6b7a21314.
Package revision is no longer incremented across package moves.
This has two advantages:
  - much less traffic generated on the mirror infrastructure
  - less updates for sabayon-limbo users when packages are moved to main

Bumping the revision was required by sabayon-weekly, which had the problem
that some package files were replaced during normal activity on
sabayonlinux.org and sabayon-limbo on the mirror. This generated checksum
errors, thus adding the checksum in the package file name ensures that
Entropy Server will never overwrite package file names unless the checksum
also matches.
Having a SHA1 checksum in the file name is also good for security, and
we may even want to create a SHA1 from the GPG signature in future.
2013-03-20 15:21:31 +00:00
Fabio Erculiani
5c123b679f [solo.utils] print_package_info: also print SHA1, SHA256 and GPG info 2013-03-20 15:07:16 +00:00
Fabio Erculiani
c16a305102 [equo] do not automatically remove unmaintained packages, unless --purge is passed
This addresses the case in where the user may not have run equo with --ask
and unmaintained packages get removed without user consent.
2013-03-12 14:09:10 +00:00
Fabio Erculiani
8fda22bd0b [equo] monkey patch argparse.ArgumentParser to fix UTF-8 strings handling
See bug 4049.
2013-03-11 00:58:21 +00:00
Fabio Erculiani
0e52aadf33 [solo] SoloYell is not a catch-all. SoloHelp is. 2013-03-08 13:38:39 +01:00
Fabio Erculiani
113f9d74b7 [client] fix --help output when redirected through pipes, fix bug 4049 2013-03-08 12:55:13 +01:00
Fabio Erculiani
d996460b30 [entropy.client.dep,solo] add support for --onlydeps, as per bug #3817
equo {install,source,download} now support --onlydeps.
Using --onlydeps, only dependencies of the selected packages are installed,
unless the selected packages are dependencies themselves.
2013-02-28 13:47:50 +00:00
Fabio Erculiani
7771d641e2 [entropy.client] extend Client.calculate_updates() to return critical updates info
calculate_updates() now returns a dictionary containing the same pieces of
information available before. In addition, it now also returns if critical
updates were found and returned by the method itself.
This is particularly useful for enforcing relaxed deps calculation in case
of critical updates (which is what happens now).

This commit breaks the Entropy Client API.
2013-02-24 13:30:28 +00:00
Fabio Erculiani
075b84872b [equo] fix "equo conf update" -7 discard option as per bug 3630 2013-01-26 11:42:17 +00:00
Fabio Erculiani
bb052e992f [equo] when running with args: "equo --bashcomp", do not call args.pop(0) if args is empty 2012-12-26 19:32:36 +01:00
Fabio Erculiani
329da2587f [equo] fix UnicodeEncodeError as per bug #3873 2012-12-26 19:17:13 +01:00
Fabio Erculiani
c5249488a6 [equo] fix "equo update" through dbus, properly populate the repositories list 2012-12-16 22:12:39 +01:00
Fabio Erculiani
2113b201ad [equo] do not allow update through dbus if no repo is configured 2012-12-16 19:59:56 +01:00
Fabio Erculiani
f2cf417979 [equo] implement the "--injected" switch for "equo match" 2012-12-08 12:57:44 +01:00
Fabio Erculiani
ea7a559f45 [equo] convert all the sys.argv elements to unicode in main()
This avoids potential issues with entropy.db and other entropy.client
components.
2012-12-01 19:15:55 +01:00
Fabio Erculiani
6f8682af3c [equo] add new command "equo query updates"
This command can be used in update-motd scripts for generating system
update status information.
2012-11-25 19:28:56 +01:00
Fabio Erculiani
3d04b69b7d [equo] trivial: remove unused import 2012-11-25 19:03:41 +01:00
Fabio Erculiani
0685cd4132 [equo] add "equo version (or --version)" command 2012-11-25 18:59:38 +01:00