From 81a0324e88d64c5a33041263f2028825dd6aec84 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 3 Sep 2009 03:25:26 +0000 Subject: Bug #283513 - Do not allow --noreplace together with --emptytree since it results in bogus masking messages. svn path=/main/trunk/; revision=14181 --- pym/_emerge/main.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pym/_emerge') diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py index 9115a25d6..543a0080d 100644 --- a/pym/_emerge/main.py +++ b/pym/_emerge/main.py @@ -1143,6 +1143,12 @@ def emerge_main(): print "emerge: can't specify both of \"--tree\" and \"--columns\"." return 1 + if '--emptytree' in myopts and '--noreplace' in myopts: + writemsg_level("emerge: can't specify both of " + \ + "\"--empty\" and \"--noreplace\".\n", + level=logging.ERROR, noiselevel=-1) + return 1 + if ("--quiet" in myopts): spinner.update = spinner.update_quiet portage.util.noiselimit = -1 -- cgit v1.2.3-1-g7c22