aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-07-03 21:52:20 (GMT)
committerZac Medico <zmedico@gentoo.org>2012-07-03 21:52:20 (GMT)
commitf736935de2bb1370524302d9cfe915c16d922bb9 (patch)
treeecb38740738e258f8412564443aa224b3b30e552
parentemaint: remove obsolete world category check (diff)
downloadportage-f736935de2bb1370524302d9cfe915c16d922bb9.zip
portage-f736935de2bb1370524302d9cfe915c16d922bb9.tar.gz
portage-f736935de2bb1370524302d9cfe915c16d922bb9.tar.bz2
emerge: more helpful "non-existent set" message
-rw-r--r--pym/_emerge/main.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py
index 3540138..2a0e67f 100644
--- a/pym/_emerge/main.py
+++ b/pym/_emerge/main.py
@@ -1494,6 +1494,12 @@ def expand_set_arguments(myfiles, myaction, root_config):
writemsg_level(("emerge: the given set '%s' " + \
"contains a non-existent set named '%s'.\n") % \
(s, e), level=logging.ERROR, noiselevel=-1)
+ if s in ('world', 'selected') and \
+ SETPREFIX + e.value in sets['selected']:
+ writemsg_level(("Use `emerge --deselect %s%s` to "
+ "remove this set from world_sets.\n") %
+ (SETPREFIX, e,), level=logging.ERROR,
+ noiselevel=-1)
return (None, 1)
if myaction in unmerge_actions and \
not sets[s].supportsOperation("unmerge"):