summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-03-30 05:52:04 +0000
committerZac Medico <zmedico@gentoo.org>2008-03-30 05:52:04 +0000
commitb0e56e905476fdd79231b9bcce64842ba53a4394 (patch)
treea2f8b03407c96fbac85df60d360f0f5b26351918 /bin
parent9e9457405c690bf26f4e884f3b47c06ea17cab8f (diff)
downloadportage-b0e56e905476fdd79231b9bcce64842ba53a4394.tar.gz
portage-b0e56e905476fdd79231b9bcce64842ba53a4394.tar.bz2
portage-b0e56e905476fdd79231b9bcce64842ba53a4394.zip
Do not allow commit mode together with the --without-mask options.
(trunk r9619) svn path=/main/branches/2.1.2/; revision=9620
Diffstat (limited to 'bin')
-rwxr-xr-xbin/repoman7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/repoman b/bin/repoman
index d9645c258..298614b8f 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -127,7 +127,8 @@ repoman_options={
"--quiet" : "Be less verbose about extraneous info",
"--verbose" : "Displays every package name while checking",
"--version" : "Show version info",
-"--without-mask" : "Behave as if no package.mask entries exist",
+"--without-mask" : "Behave as if no package.mask entries exist (not " + \
+ "allowed\n with commit mode)",
"--xmlparse" : "Forces the metadata.xml parse check to be carried out"
}
repoman_shortoptions={
@@ -563,8 +564,10 @@ if ("--version" in myoptions):
show_version()
if mymode=="last" or (mymode=="lfull"):
last()
-if mymode == "commit":
+if mymode == "commit" and \
+ not ("--force" in myoptions or "--pretend" in myoptions):
myoptions.pop("--ignore-masked", None)
+ myoptions.pop("--without-mask", None)
# Set this to False when an extraordinary issue (generally
# something other than a QA issue) makes it impossible to