Bail out immediately if --exclude is given a bad atom.
authorZac Medico <zmedico@gentoo.org>
Thu, 29 Apr 2010 13:33:22 +0000 (06:33 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 29 Apr 2010 13:33:22 +0000 (06:33 -0700)
pym/_emerge/main.py

index 11dc9a4f0a512f0be64b15aa5764e12ce814a1d3..d5d364b219672f19195e65f53ce324a0d2439c10 100644 (file)
@@ -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