raise portage.exception.MissingParameter("PORTAGE_GPG_KEY is unset!")
if "PORTAGE_GPG_DIR" not in repoman_settings:
repoman_settings["PORTAGE_GPG_DIR"] = os.path.expanduser("~/.gnupg")
- logging.info("Automatically setting PORTAGE_GPG_DIR to %s" % repoman_settings["PORTAGE_GPG_DIR"])
+ logging.info("Automatically setting PORTAGE_GPG_DIR to '%s'" % repoman_settings["PORTAGE_GPG_DIR"])
repoman_settings["PORTAGE_GPG_DIR"] = os.path.expanduser(repoman_settings["PORTAGE_GPG_DIR"])
if not os.access(repoman_settings["PORTAGE_GPG_DIR"], os.X_OK):
raise portage.exception.InvalidLocation(
"Unable to access directory: PORTAGE_GPG_DIR='%s'" % \
repoman_settings["PORTAGE_GPG_DIR"])
- gpgcmd = "gpg --sign --clearsign --yes "
- gpgcmd+= "--default-key "+repoman_settings["PORTAGE_GPG_KEY"]
- if "PORTAGE_GPG_DIR" in repoman_settings:
- gpgcmd += " --homedir "+repoman_settings["PORTAGE_GPG_DIR"]
+ gpgcmd = "gpg --sign --clearsign --yes"
+ gpgcmd += " --default-key " + repoman_settings["PORTAGE_GPG_KEY"]
+ gpgcmd += " --homedir " + repoman_settings["PORTAGE_GPG_DIR"]
if options.pretend:
print("("+gpgcmd+" "+filename+")")
else: