commit: 3ed886e510a4c905d80c500665a1ce4e245b19d5
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 13 17:19:46 2015 +0000
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Mon Apr 13 17:22:24 2015 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=3ed886e5
bin/repoman: Catch the case of gpgcmd == ''
prometheanfire was getting '' (null string) returned, so it was not erroring
like it should.
bin/repoman | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/repoman b/bin/repoman
index 5ff6857..e9c89c2 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -2953,7 +2953,7 @@ else:
# Setup the GPG commands
def gpgsign(filename):
gpgcmd = repoman_settings.get("PORTAGE_GPG_SIGNING_COMMAND")
- if gpgcmd is None:
+ if gpgcmd in [None, '']:
raise MissingParameter("PORTAGE_GPG_SIGNING_COMMAND is
unset!" + \
" Is make.globals missing?")
if "${PORTAGE_GPG_KEY}" in gpgcmd and \