diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-04-29 06:33:22 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-04-29 06:33:22 -0700 |
commit | 2cfb3e852ce4ce9e83690e8033f50d32f696f5bd (patch) | |
tree | 376d95dac5c3572bdb196250ca3e9623c55a265b | |
parent | 442828eb2f64a45c04d1baae1cce358b32dcaf3b (diff) | |
download | portage-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.py | 4 |
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 |