aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2013-02-14 05:32:48 (GMT)
committerZac Medico <zmedico@gentoo.org>2013-02-14 05:32:48 (GMT)
commit75e23508033925701d86966f1cc97d4647cdfdb5 (patch)
tree27b5230ab8f44281dfe865b1228a1fc6e6a111be
parentslot_operator_replace_installed: check available (diff)
downloadportage-75e23508033925701d86966f1cc97d4647cdfdb5.zip
portage-75e23508033925701d86966f1cc97d4647cdfdb5.tar.gz
portage-75e23508033925701d86966f1cc97d4647cdfdb5.tar.bz2
repoman: warn if not FEATURES=sign, bug #457034v2.2.0_alpha163
-rwxr-xr-xbin/repoman11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/repoman b/bin/repoman
index c1bb357..270b86f 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -609,6 +609,17 @@ if repo_config.sign_commit:
sign_manifests = "sign" in repoman_settings.features and \
repo_config.sign_manifest
+if repo_config.sign_manifest and repo_config.name == "gentoo" and \
+ options.mode in ("commit",) and not sign_manifests:
+ msg = ("The '%s' repository has manifest signatures enabled, "
+ "but FEATURES=sign is currently disabled. In order to avoid this "
+ "warning, enable FEATURES=sign in make.conf. Alternatively, "
+ "repositories can disable manifest signatures by setting "
+ "'sign-manifests = false' in metadata/layout.conf.") % \
+ (repo_config.name,)
+ for line in textwrap.wrap(msg, 60):
+ logging.warn(line)
+
if sign_manifests and options.mode in ("commit",) and \
repoman_settings.get("PORTAGE_GPG_KEY") and \
re.match(r'^%s$' % GPG_KEY_ID_REGEX,