- do not hardcode /etc but use Dir::Etc instead
if [ "$(id -u)" -eq 0 ]; then
# we could use a tmpfile here too, but creation of this tends to be time-consuming
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"
[ Translation of programs ]
* Danish by Joe Hansen. Closes: #675605
* French updated by Christian Perrier
[ 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 <bubulle@debian.org> Sat, 02 Jun 2012 18:25:18 +0200
-- Christian Perrier <bubulle@debian.org> Sat, 02 Jun 2012 18:25:18 +0200