summaryrefslogtreecommitdiffstats
path: root/bin/repoman
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-10-14 13:16:21 -0700
committerZac Medico <zmedico@gentoo.org>2012-10-14 13:16:45 -0700
commite3edc37982a4a0c89db5d4b28b58de77cea1bcf2 (patch)
treeda5f2720a571227f6f2bdf0f57d291114e03ea2c /bin/repoman
parente7f0157b952a5eb9d77464d40b27748c226f580b (diff)
downloadportage-e3edc37982a4a0c89db5d4b28b58de77cea1bcf2.tar.gz
portage-e3edc37982a4a0c89db5d4b28b58de77cea1bcf2.tar.bz2
portage-e3edc37982a4a0c89db5d4b28b58de77cea1bcf2.zip
repoman: special git commit footer, bug #438364
Diffstat (limited to 'bin/repoman')
-rwxr-xr-xbin/repoman40
1 files changed, 26 insertions, 14 deletions
diff --git a/bin/repoman b/bin/repoman
index edd764935..40ff0979b 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -2524,21 +2524,33 @@ else:
sys.stderr.write("Failed to insert portage version in message!\n")
sys.stderr.flush()
portage_version = "Unknown"
- unameout = platform.system() + " "
- if platform.system() in ["Darwin", "SunOS"]:
- unameout += platform.processor()
- else:
- unameout += platform.machine()
- commitmessage += "\n\n(Portage version: %s/%s/%s" % \
- (portage_version, vcs, unameout)
- if options.force:
- commitmessage += ", RepoMan options: --force"
- if sign_manifests:
- commitmessage += ", signed Manifest commit with key %s" % \
- repoman_settings["PORTAGE_GPG_KEY"]
+
+ if vcs == "git":
+ # Use new footer only for git (see bug #438364).
+ commit_footer = "\n\nPackage-manager: portage-%s" % portage_version
+ if options.force:
+ commit_footer += "\nRepoMan-options: --force"
+ if sign_manifests:
+ commit_footer += "\nManifest-sign-key: %s" % \
+ repoman_settings.get("PORTAGE_GPG_KEY", "")
else:
- commitmessage += ", unsigned Manifest commit"
- commitmessage += ")"
+ unameout = platform.system() + " "
+ if platform.system() in ["Darwin", "SunOS"]:
+ unameout += platform.processor()
+ else:
+ unameout += platform.machine()
+ commit_footer += "\n\n(Portage version: %s/%s/%s" % \
+ (portage_version, vcs, unameout)
+ if options.force:
+ commit_footer += ", RepoMan options: --force"
+ if sign_manifests:
+ commit_footer += ", signed Manifest commit with key %s" % \
+ repoman_settings.get("PORTAGE_GPG_KEY", "")
+ else:
+ commit_footer += ", unsigned Manifest commit"
+ commit_footer += ")"
+
+ commitmessage += commit_footer
if options.echangelog in ('y', 'force'):
logging.info("checking for unmodified ChangeLog files")