From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-commits+bounces-331655-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1Q53mE-000271-DU
	for garchives@archives.gentoo.org; Wed, 30 Mar 2011 22:22:10 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id BB0381C019;
	Wed, 30 Mar 2011 22:22:01 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	by pigeon.gentoo.org (Postfix) with ESMTP id 8BE201C019
	for <gentoo-commits@lists.gentoo.org>; Wed, 30 Mar 2011 22:22:01 +0000 (UTC)
Received: from pelican.gentoo.org (unknown [66.219.59.40])
	(using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 21E6E1B4066
	for <gentoo-commits@lists.gentoo.org>; Wed, 30 Mar 2011 22:22:01 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by pelican.gentoo.org (Postfix) with ESMTP id 82B1680065
	for <gentoo-commits@lists.gentoo.org>; Wed, 30 Mar 2011 22:22:00 +0000 (UTC)
From: "Arfrever Frehtes Taifersar Arahesis" <arfrever@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Arfrever Frehtes Taifersar Arahesis" <arfrever@gentoo.org>
Message-ID: <6f526bf9532b34434f2f5a6860901941ee86382c.arfrever@gentoo>
Subject: [gentoo-commits] proj/portage:master commit in: bin/
X-VCS-Repository: proj/portage
X-VCS-Files: bin/repoman
X-VCS-Directories: bin/
X-VCS-Committer: arfrever
X-VCS-Committer-Name: Arfrever Frehtes Taifersar Arahesis
X-VCS-Revision: 6f526bf9532b34434f2f5a6860901941ee86382c
Date: Wed, 30 Mar 2011 22:22:00 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: quoted-printable
X-Archives-Salt: 
X-Archives-Hash: 3f73916fe7f6dc7dfd3a462cbe306868

commit:     6f526bf9532b34434f2f5a6860901941ee86382c
Author:     Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Gentoo <DO=
T> Org>
AuthorDate: Wed Mar 30 22:19:54 2011 +0000
Commit:     Arfrever Frehtes Taifersar Arahesis <arfrever <AT> gentoo <DO=
T> org>
CommitDate: Wed Mar 30 22:19:54 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a=
=3Dcommit;h=3D6f526bf9

Minor improvements in gpgsign().
repoman_settings["PORTAGE_GPG_DIR"] is always set.

---
 bin/repoman |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/bin/repoman b/bin/repoman
index 985b8ea..8f36372 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -2423,16 +2423,15 @@ else:
 			raise portage.exception.MissingParameter("PORTAGE_GPG_KEY is unset!")
 		if "PORTAGE_GPG_DIR" not in repoman_settings:
 			repoman_settings["PORTAGE_GPG_DIR"] =3D 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'" % repoma=
n_settings["PORTAGE_GPG_DIR"])
 		repoman_settings["PORTAGE_GPG_DIR"] =3D os.path.expanduser(repoman_set=
tings["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=3D'%s'" % \
 				repoman_settings["PORTAGE_GPG_DIR"])
-		gpgcmd =3D "gpg --sign --clearsign --yes "
-		gpgcmd+=3D "--default-key "+repoman_settings["PORTAGE_GPG_KEY"]
-		if "PORTAGE_GPG_DIR" in repoman_settings:
-			gpgcmd +=3D " --homedir "+repoman_settings["PORTAGE_GPG_DIR"]
+		gpgcmd =3D "gpg --sign --clearsign --yes"
+		gpgcmd +=3D " --default-key " + repoman_settings["PORTAGE_GPG_KEY"]
+		gpgcmd +=3D " --homedir " + repoman_settings["PORTAGE_GPG_DIR"]
 		if options.pretend:
 			print("("+gpgcmd+" "+filename+")")
 		else: