summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/main.py
diff options
context:
space:
mode:
authorSebastian Luther <SebastianLuther@gmx.de>2010-07-23 13:05:42 +0200
committerZac Medico <zmedico@gentoo.org>2010-07-23 09:47:13 -0700
commitb5b50e4193e2fb8aa7e5f3bd27fed41e2552697b (patch)
tree3fcf859934ca3667507e92d7d28fbbc2e4f2e632 /pym/_emerge/main.py
parenta58133d4682fe5fc6d2596d9e48fb3fbb6eb926d (diff)
downloadportage-b5b50e4193e2fb8aa7e5f3bd27fed41e2552697b.tar.gz
portage-b5b50e4193e2fb8aa7e5f3bd27fed41e2552697b.tar.bz2
portage-b5b50e4193e2fb8aa7e5f3bd27fed41e2552697b.zip
--exclude: Add support for atoms with wildcards
Diffstat (limited to 'pym/_emerge/main.py')
-rw-r--r--pym/_emerge/main.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py
index 9e91ee9e4..4e621d21e 100644
--- a/pym/_emerge/main.py
+++ b/pym/_emerge/main.py
@@ -744,10 +744,10 @@ def parse_opts(tmpcmdline, silent=False):
for x in ' '.join(myoptions.exclude).split():
bad_atom = False
try:
- atom = portage.dep.Atom(x)
+ atom = portage.dep.Atom(x, allow_wildcard=True)
except portage.exception.InvalidAtom:
try:
- atom = portage.dep.Atom("null/"+x)
+ atom = portage.dep.Atom("*/"+x, allow_wildcard=True)
except portage.exception.InvalidAtom:
bad_atom = True
@@ -760,7 +760,7 @@ def parse_opts(tmpcmdline, silent=False):
exclude.append(atom)
if bad_atoms and not silent:
- parser.error("Invalid Atom(s) in --exclude parameter: '%s' (only package names and slot atoms allowed)\n" % \
+ parser.error("Invalid Atom(s) in --exclude parameter: '%s' (only package names and slot atoms (with widlcards) allowed)\n" % \
(",".join(bad_atoms),))
if myoptions.fail_clean == "True":