1 |
On Wed, 27 Jan 2016 09:56:17 +0100 |
2 |
Alexander Berntsen <bernalex@g.o> wrote: |
3 |
|
4 |
> Make emerge specify that it did not find any *binary packages* when |
5 |
> --usepkg is active, as opposed to that it did not find any *ebuilds*, |
6 |
> as this was confusing behaviour. |
7 |
> |
8 |
> X-Gentoo-Bug: 573070 |
9 |
> X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=573070 |
10 |
> |
11 |
> Signed-off-by: Alexander Berntsen <bernalex@g.o> |
12 |
> --- |
13 |
> pym/_emerge/depgraph.py | 5 ++++- |
14 |
> 1 file changed, 4 insertions(+), 1 deletion(-) |
15 |
> |
16 |
> diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py |
17 |
> index d971749..05d1da5 100644 |
18 |
> --- a/pym/_emerge/depgraph.py |
19 |
> +++ b/pym/_emerge/depgraph.py |
20 |
> @@ -5125,7 +5125,10 @@ class depgraph(object): |
21 |
> cp_exists = True |
22 |
> break |
23 |
> |
24 |
> - writemsg("\nemerge: there are no ebuilds to |
25 |
> satisfy "+green(xinfo)+".\n", noiselevel=-1) |
26 |
> + writemsg("\nemerge: there are no %s to |
27 |
> satisfy " % |
28 |
> + ("binary packages" if |
29 |
> + self._frozen_config.myopts.get("--usepkgonly", "y") |
30 |
> == True |
31 |
> + else "ebuilds") + green(xinfo) + ".\n", |
32 |
> noiselevel=-1) if isinstance(myparent, AtomArg) and \ |
33 |
> not cp_exists and \ |
34 |
> self._frozen_config.myopts.get( |
35 |
|
36 |
works for me |
37 |
|
38 |
-- |
39 |
Brian Dolbec <dolsen> |