diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-09-06 17:44:26 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-09-06 17:44:26 +0000 |
commit | 528f07aea2db7071c3eb35f5ca9f7286879405a3 (patch) | |
tree | d8315715ae16a8688422ef522b66bd242353f75d | |
parent | 0a4c6057b7ed234c24c9b8082ceadc2e60f7bd92 (diff) | |
download | portage-528f07aea2db7071c3eb35f5ca9f7286879405a3.tar.gz portage-528f07aea2db7071c3eb35f5ca9f7286879405a3.tar.bz2 portage-528f07aea2db7071c3eb35f5ca9f7286879405a3.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. (trunk r7709)
svn path=/main/branches/2.1.2/; revision=7737
-rwxr-xr-x | bin/repoman | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/repoman b/bin/repoman index df0d5e440..cd8fca0bc 100755 --- a/bin/repoman +++ b/bin/repoman @@ -104,6 +104,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", @@ -1549,7 +1550,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) |