diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-09-29 09:48:55 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-09-29 09:48:55 -0700 |
commit | a24bcfcfad95fcf4b71064e386fb6272f41ff49a (patch) | |
tree | c07ca3b1841baf673aad0e1418275580b9690ef1 | |
parent | 20119771015247be5a7143ff73f00ec52f9e83cb (diff) | |
download | portage-a24bcfcfad95fcf4b71064e386fb6272f41ff49a.tar.gz portage-a24bcfcfad95fcf4b71064e386fb6272f41ff49a.tar.bz2 portage-a24bcfcfad95fcf4b71064e386fb6272f41ff49a.zip |
repoman: never force unsigned manifest commitv2.2.0_alpha60
This removes a special case where manifests would first be commited
without signatures for category-level or greater commits. This case
behavior wasn't very useful anyway, and would be a problem if the
unsigned manifests got rejected by a commit hook (as may happen in the
near future).
-rwxr-xr-x | bin/repoman | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/bin/repoman b/bin/repoman index 184c5ef2c..20f4b15b0 100755 --- a/bin/repoman +++ b/bin/repoman @@ -2557,39 +2557,6 @@ else: print(red("I'm confused... I don't know where I am!")) sys.exit(1) - # Force an unsigned commit when more than one Manifest needs to be signed. - if repolevel < 3 and sign_manifests: - - fd, commitmessagefile = tempfile.mkstemp(".repoman.msg") - mymsg = os.fdopen(fd, "wb") - mymsg.write(_unicode_encode(commitmessage)) - mymsg.write(b"\n (Unsigned Manifest commit)") - mymsg.close() - - commit_cmd = [vcs] - commit_cmd.extend(vcs_global_opts) - commit_cmd.append("commit") - commit_cmd.extend(vcs_local_opts) - commit_cmd.extend(["-F", commitmessagefile]) - commit_cmd.extend(f.lstrip("./") for f in mymanifests) - - try: - if options.pretend: - print("(%s)" % (" ".join(commit_cmd),)) - else: - retval = spawn(commit_cmd, env=os.environ) - if retval: - writemsg_level(("!!! Exiting on %s (shell) " + \ - "error code: %s\n") % (vcs, retval), - level=logging.ERROR, noiselevel=-1) - sys.exit(retval) - finally: - try: - os.unlink(commitmessagefile) - except OSError: - pass - manifest_commit_required = False - signed = False if sign_manifests: signed = True |