commit: 8c9b1d6a7c115344cdc5bd8e7d122ab721aeb53a Author: Alexander Berntsen <bernalex <AT> gentoo <DOT> org> AuthorDate: Wed Jan 27 08:51:25 2016 +0000 Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org> CommitDate: Fri Jan 29 23:03:17 2016 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=8c9b1d6a
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(
