commit:     9c9165fb9420a285e8e2c62cb9ba8eb91120cb66
Author:     Alexander Berntsen <bernalex <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 27 08:51:25 2016 +0000
Commit:     Alexander Berntsen <bernalex <AT> gentoo <DOT> org>
CommitDate: Thu Jan 28 11:50:58 2016 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=9c9165fb

Clarify no binary packages error (bug 573070)

Make emerge specify that it did not find any *binary packages* when
--usepkg is active, as opposed to that it did not find any *ebuilds*, as
this was confusing behaviour.

X-Gentoo-Bug: 573070
X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=573070

Signed-off-by: Alexander Berntsen <bernalex <AT> gentoo.org>
Acked-by:      Brian Dolbec       <dolsen <AT> gentoo.org>

 pym/_emerge/depgraph.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index d971749..05d1da5 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -5125,7 +5125,10 @@ class depgraph(object):
                                        cp_exists = True
                                        break
 
-                       writemsg("\nemerge: there are no ebuilds to satisfy 
"+green(xinfo)+".\n", noiselevel=-1)
+                       writemsg("\nemerge: there are no %s to satisfy " %
+                ("binary packages" if
+                 self._frozen_config.myopts.get("--usepkgonly", "y") == True
+                 else "ebuilds") + green(xinfo) + ".\n", noiselevel=-1)
                        if isinstance(myparent, AtomArg) and \
                                not cp_exists and \
                                self._frozen_config.myopts.get(

Reply via email to