From 563fd891d80feedefd812aad83844e2189870e2c Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 6 Jun 2012 13:24:13 +0200 Subject: * cmdline/apt-key: - do not hardcode /etc but use Dir::Etc instead --- cmdline/apt-key | 3 ++- debian/changelog | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cmdline/apt-key b/cmdline/apt-key index 97d6e0323..c184e3e75 100755 --- a/cmdline/apt-key +++ b/cmdline/apt-key @@ -11,7 +11,8 @@ GPG_CMD="gpg --ignore-time-conflict --no-options --no-default-keyring --secret-k if [ "$(id -u)" -eq 0 ]; then # we could use a tmpfile here too, but creation of this tends to be time-consuming - GPG_CMD="$GPG_CMD --trustdb-name /etc/apt/trustdb.gpg" + eval $(apt-config shell TRUSTDBDIR Dir::Etc/d) + GPG_CMD="$GPG_CMD --trustdb-name ${TRUSTDBDIR}/trustdb.gpg" fi GPG="$GPG_CMD" diff --git a/debian/changelog b/debian/changelog index 1547e5d35..432032b1e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,6 +7,10 @@ apt (0.9.5.2) UNRELEASED; urgency=low [ Translation of programs ] * Danish by Joe Hansen. Closes: #675605 * French updated by Christian Perrier + + [ Sebastian Heinlein ] + * cmdline/apt-key: + - do not hardcode /etc but use Dir::Etc instead -- Christian Perrier Sat, 02 Jun 2012 18:25:18 +0200 -- cgit v1.2.3