From: Zac Medico Date: Thu, 29 Apr 2010 13:33:22 +0000 (-0700) Subject: Bail out immediately if --exclude is given a bad atom. X-Git-Tag: v2.2_rc68~623 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=2cfb3e852ce4ce9e83690e8033f50d32f696f5bd;p=portage.git Bail out immediately if --exclude is given a bad atom. --- 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