From 2ab0fa496c6f923503744f7492e611ead8ce2682 Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Thu, 31 Mar 2011 00:19:54 +0200 Subject: Minor improvements in gpgsign(). repoman_settings["PORTAGE_GPG_DIR"] is always set. --- bin/repoman | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'bin/repoman') diff --git a/bin/repoman b/bin/repoman index 0a480a5cc..723690991 100755 --- a/bin/repoman +++ b/bin/repoman @@ -2422,16 +2422,15 @@ else: 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: -- cgit v1.2.3-1-g7c22