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