Commit Graph

1970 Commits

Author SHA1 Message Date
Sławomir Nizio
41ba9b6d63 [*] be strict about Python modules paths being loaded
For convenience (seemingly, and it really is convenient) equo and other
tools can be run from the checkout, and Entropy modules are loaded from
the checkout. Now there is a strict separation when system paths and
when paths from the checkout are used.

It makes it a bit more robust, secure and preditable at the cost of
a little more complexity.

A pleasant side effect of this change is that it is not required to
change directory to the tool (to use non-system one), as paths in the
checkout are relative to scripts.

Imports in lib/tests were not adjusted.
2018-10-27 13:03:58 +02:00
Fabio Erculiani
066ec3ac35 [client/po] Fix broken chars in German translation. See bug #5175. 2018-09-29 22:04:54 +02:00
Fabio Erculiani
8c786b7a05 [client/po] fix Italian translation for "item", see bug #5312. 2018-09-29 21:59:16 +02:00
Fabio Erculiani
a7171bdc7e Release Entropy 317 2018-09-23 22:29:48 +02:00
Fabio Erculiani
f0e6b09ee2 Release Entropy 316 2018-09-23 15:41:48 +02:00
Fabio Erculiani
fe44bb34b2 [client/po] update .po files 2018-09-23 15:39:43 +02:00
Fabio Erculiani
adb456d498 Update entropy.pot 2018-09-23 15:39:09 +02:00
Fabio Erculiani
a5890973b1 Release Entropy 315 2018-09-22 19:39:42 +02:00
Ettore Di Giacinto
d420cf5774 Release Entropy 314 2018-09-08 23:16:57 +02:00
Fabio Erculiani
12aafd8e5e Release Entropy 313 2018-08-18 09:25:08 +02:00
Sławomir Nizio
04c4495313 [solo.commands.rescue] trivial fixes
- Variable entropy_client was not available where it was used.
- Module entropy.dep was not imported but was used. It worked as
  the module was imported from another place, but it is better to
  import it explicitly.
2018-08-06 23:01:17 +02:00
Sławomir Nizio
9db87b99c3 [equo, eit] update man pages 2018-08-06 22:45:32 +02:00
Sławomir Nizio
789e06c122 [solo.commands.command, equo] support "authors" in docs
Suggested by Ettore.

My comment is that it is to have a more correct information and to give
credit where it is due.
This is not a "miscredit" towards the Creator. We know who has made this
possible!
2018-08-06 22:39:42 +02:00
Sławomir Nizio
70f1719138 [solo.commands.mark] new command 2018-07-31 08:58:31 +02:00
Sławomir Nizio
3b7181d6c9 [solo.commands.rescue] factor out _SpmUserPackages 2018-07-30 09:11:50 +02:00
Sławomir Nizio
fb1f0f2d82 [solo.commands.rescue] fix usage of a wrong variable 2018-07-30 08:52:56 +02:00
Sławomir Nizio
e5db0d6b6e [solo.commands.rescue] use world file to replicate by-user status
Uses the newly introduced function in spm: get_user_selected_packages.
2018-07-30 08:49:17 +02:00
Ettore Di Giacinto
9e427b7c9b Release Entropy 312 2018-07-11 18:10:19 +02:00
Ettore Di Giacinto
920b2e9926 [client/po] Update translations 2018-06-03 09:24:27 +02:00
Ettore Di Giacinto
1d6fde589e Release Entropy 311 2018-05-30 22:13:29 +02:00
Sławomir Nizio
1197966644 [entropy.client] fix install_sources saving
Examples of scenarios that are fixed:
- "package was installed by user" information was lost on package p1
  when p1 was pulled as update on "equo install p2";
- update was saving all packages as installed by user.
2018-04-17 12:38:43 +02:00
Reuben D'Netto
2b532d4237 Use entropy_client.output() 2018-04-09 21:36:37 +10:00
Reuben D'Netto
2e6909f134 [solo.commands.rescue] Added a sanity check to ensure we're using the real database. 2018-04-09 20:42:46 +10:00
Reuben D'Netto
f9ff8cc305 Revert "[solo.commands.rescue] simplify "generate" code"
This reverts commit d856204a8d.
2018-04-09 20:42:46 +10:00
Fabio Erculiani
8d0f16d9d5 Release Entropy 310 2017-10-08 22:25:58 +02:00
Fabio Erculiani
2d65d5b7bf [entropy.client] fix conflicts removal handling during upgrade.
In certain extreme situations, that are more likely if the install
state is old (e.g. 9 months +), Entropy may decide to remove packages
due to conflicts with the version being installed and shoot itself
in the foot, if this is the case of dev-lang/python :-).

So, this commit tries to avoid the scenario by filtering out package
removals for those that are being installed anyway as part of the
transaction (e.g. a system upgrade).

This should fix the very specific case, but increase uncertainty
and thus entropy in other cases where once a package that lists
conflicts is installed, it may not expect to find that package
installed. However, this case should be handled by the dependency
graph generator (and it currently does not), which would need to
reorder the execution of the queue to comply with conflicts.

Perhaps, someone in the future will improve that too, for now,
let's enjoy one more snowflake.

Current improvement:
- foo-1 and bar-2 are set to be installed
- foo-1 conflicts with <bar-2
- bar-1 is installed
- foo-1 wanted to remove bar-1 as part of foo-1 install transaction.
  (now fixed, it won't...)
- bar-2 is then installed

Better improvement:
- foo-1 and bar-2 are set to be installed
- foo-1 conflicts with <bar-2 (but bar-2 itself can be installed
  and does not conflict with foo-1)
- bar-2 is set to be installed before foo-1
- when entropy gets to foo-1 there is nothing to remove
2017-10-08 21:51:07 +02:00
Fabio Erculiani
330ffd1926 Release Entropy 309 2017-09-10 19:08:33 +02:00
Fabio Erculiani
8461cdaa98 [client/po] Update translations 2017-09-10 19:08:14 +02:00
Francesco Ferro
cac8ad2b29 Release Entropy 308 2017-09-09 18:46:39 +02:00
Samantha McVey
14921ad719 [zsh-completion] Fix completion for equo query list
Before no completions would show. Now we remove unneeded code and use
the same completion processing for other commands.
2017-06-15 17:43:44 -07:00
Samantha McVey
83ea0e56cf [zsh-completion] Fix help message parse bugs and add improvements
This fixes a bug where certain tab completions would be met with lots
of sed errors.

It is also faster since it uses 1 less sed process.

Additionally it will also show 'no matches' if there are no
matches found for a command completion, instead of showing
a suggestion to add 1st level commands on.

Before: equo X (no cmds left to add)
zsh suggests install, query, remove etc.

Now it will properly say there are not more suggestions
for most of the $1 terms
2017-06-15 17:43:39 -07:00
Fabio Erculiani
b2d0ca8707 Release Entropy 307 2017-05-13 14:36:24 +02:00
Fabio Erculiani
c611f76a33 Release Entropy 306 2016-11-20 08:07:36 +01:00
Fabio Erculiani
9c300b0a3c [client] update translations 2016-11-20 08:00:09 +01:00
Fabio Erculiani
ff0938611a [client] update entropy.pot 2016-11-20 07:54:55 +01:00
Fabio Erculiani
b95b0d80b4 Release Entropy 305 2016-11-19 21:16:27 +01:00
mudler
4a0488bd41 Release Entropy 304 2016-09-18 16:54:55 +02:00
Fabio Erculiani
0d778e8b39 Merge pull request #32 from freeboson/equo-zsh-updates
Equo zsh completion updates
2016-09-02 09:40:42 +02:00
Sujeet Akula
3fc1de1e74 break up the long text processing pipes 2016-08-31 07:49:02 +10:00
Fabio Erculiani
5ae09bf9c3 Merge pull request #30 from Enlik/exc-handler-fix
[entropy.client] fixes to exception handler
2016-08-30 20:18:38 +02:00
Fabio Erculiani
bf5e00d014 Merge pull request #24 from skwerlman/patch-1
[solo.commands.moo] fix `lxnay` speech bubble
2016-08-30 20:17:57 +02:00
Sujeet Akula
0b7efb5be9 update aliases in subcommand switch 2016-08-30 23:50:37 +10:00
Sujeet Akula
50f7796fea get all the pathological subcommand -h cases 2016-08-30 23:49:19 +10:00
Sujeet Akula
d6ad7780fa should not have edited this line 2016-08-30 23:48:44 +10:00
Sujeet Akula
3844653ee5 change equo -h parsing 2016-08-30 17:00:32 +10:00
Sujeet Akula
cbc9a2d602 equo query list called twice for no reason 2016-08-30 16:59:25 +10:00
Sujeet Akula
8c3308cf91 Remove --nocolor, update --color desc 2016-08-30 16:59:06 +10:00
Sławomir Nizio
706d6bca55 [solo.commands,lib] improve message about conflicted packages
Don't show the package itself. If there are no revdeps, nothing would be
shown so a custom "(no reverse dependencies)" message will appear, which
is clearer.
2016-08-06 20:55:33 +02:00
Sławomir Nizio
e96db09ad7 [solo.commands,lib] display packages that pull in conflicting ones 2016-08-05 20:00:21 +02:00
Sławomir Nizio
37d15af8bf [entropy.client] fixes to exception handler
- correct negated logic in EPIPE hanling
- correct ENOSPC handling (it's IOError, but OSError was catched)
- support Python 3.3+ which got reworked exceptions
2016-08-04 01:30:22 +02:00