summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-08-27 21:02:47 +0000
committerZac Medico <zmedico@gentoo.org>2007-08-27 21:02:47 +0000
commit9005e46903e142b981ac270f351d7281c5e8b547 (patch)
treefb2034d0f5d3831c774970c26727f470a3cdf947
parentd59466926e57f1226fe654deb109812a1cd19389 (diff)
downloadportage-9005e46903e142b981ac270f351d7281c5e8b547.tar.gz
portage-9005e46903e142b981ac270f351d7281c5e8b547.tar.bz2
portage-9005e46903e142b981ac270f351d7281c5e8b547.zip
Add a --force option that forces commit to proceed. This is useful for cases like bug #110443 where the commit normally isn't allowed but there are exceptional circumstances where it may be acceptable.
svn path=/main/trunk/; revision=7709
-rwxr-xr-xbin/repoman7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/repoman b/bin/repoman
index fb6f23eb4..9842247c6 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -106,6 +106,7 @@ repoman_options={
"--commitmsg" : "Adds a commit message via the command line",
"--commitmsgfile" : "Adds a commit message from the specified file",
"--help" : "Show this screen",
+"--force" : "Force commit to proceed, regardless of QA issues",
"--ignore-arches" : "Ignore arch-specific failures (where arch != host)",
"--ignore-masked" : "Ignore masked packages (not allowed with commit mode)",
"--pretend" : "Don't commit or fix anything; just show what would be done",
@@ -1551,7 +1552,11 @@ if mymode!="commit":
if quiet < 1:
print
else:
- if dofail:
+ if dofail and "--force" in myoptions and "--pretend" not in myoptions:
+ print green("RepoMan sez:") + \
+ " \"You want commit even with these QA issues?\n" + \
+ " I'll take it this time, but I'm not happy.\"\n"
+ elif dofail:
print turquoise("Please fix these important QA issues first.")
print green("RepoMan sez:"),"\"Make your QA payment on time and you'll never see the likes of me.\"\n"
sys.exit(1)