summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-04-29 06:33:22 -0700
committerZac Medico <zmedico@gentoo.org>2010-04-29 06:33:22 -0700
commit2cfb3e852ce4ce9e83690e8033f50d32f696f5bd (patch)
tree376d95dac5c3572bdb196250ca3e9623c55a265b
parent442828eb2f64a45c04d1baae1cce358b32dcaf3b (diff)
downloadportage-2cfb3e852ce4ce9e83690e8033f50d32f696f5bd.tar.gz
portage-2cfb3e852ce4ce9e83690e8033f50d32f696f5bd.tar.bz2
portage-2cfb3e852ce4ce9e83690e8033f50d32f696f5bd.zip
Bail out immediately if --exclude is given a bad atom.
-rw-r--r--pym/_emerge/main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py
index 11dc9a4f0..d5d364b21 100644
--- a/pym/_emerge/main.py
+++ b/pym/_emerge/main.py
@@ -754,8 +754,8 @@ def parse_opts(tmpcmdline, silent=False):
exclude.append(atom)
if bad_atoms and not silent:
- writemsg("!!! Invalid Atom(s) in --exclude parameter: '%s' (only package names and slot atoms allowed)\n" % \
- (",".join(bad_atoms),), noiselevel=-1)
+ parser.error("Invalid Atom(s) in --exclude parameter: '%s' (only package names and slot atoms allowed)\n" % \
+ (",".join(bad_atoms),))
myoptions.exclude = exclude