Gentoo Archives: gentoo-portage-dev

From: Brian Dolbec <dolsen@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCH] Clarify no binary packages error (bug 573070)
Date: Wed, 27 Jan 2016 14:02:04
Message-Id: 20160127060108.6e2d4c9b.dolsen@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCH] Clarify no binary packages error (bug 573070) by Alexander Berntsen
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>

Replies