[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#632668: marked as done (apt-key: does not look at apt.conf for all gpg files)



Your message dated Mon, 17 Aug 2015 10:36:57 +0200
with message-id <20150817103325.GA31322@debian.org>
and subject line Re: Bug#632668: apt-key: does not look at apt.conf for all gpg files
has caused the Debian Bug report #632668,
regarding apt-key: does not look at apt.conf for all gpg files
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
632668: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=632668
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: apt
Version: 0.8.10.3+squeeze1
Severity: wishlist

apt-key hardcodes several paths which belong to the apt config, at least:
/etc/apt/secring.gpg
/etc/apt/trustdb.gpg

There are also references to /var/lib/apt/keyrings which are probably in the same
situation.

Not a patch (and would probably require -o support as well for my use case), but I could get
"add" to work for me with:

$ diff -u /usr/bin/apt-key .
--- /usr/bin/apt-key    2011-04-15 21:06:00.000000000 +0000
+++ ./apt-key   2011-07-04 17:04:51.462197369 +0000
@@ -5,7 +5,7 @@

 # We don't use a secret keyring, of course, but gpg panics and
 # implodes if there isn't one available
-GPG_CMD="gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg"
+GPG_CMD="gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring $PWD/secring.gpg --trustdb-name $PWD/trustdb.gpg"
 GPG="$GPG_CMD"

 MASTER_KEYRING=""
@@ -145,7 +145,7 @@
 # otherwise use the default
 else   
        #echo "generate list"
-       TRUSTEDFILE="/etc/apt/trusted.gpg"
+       TRUSTEDFILE="$PWD/trusted.gpg"
        eval $(apt-config shell TRUSTEDFILE Apt::GPGV::TrustedKeyring)
        eval $(apt-config shell TRUSTEDFILE Dir::Etc::Trusted/f)
        if [ -r "$TRUSTEDFILE" ]; then


And apt-get -o Dir::Etc=$PWD/etc is (at last) happy after that.



--- End Message ---
--- Begin Message ---
Version: 0.9.14

On Mon, Aug 17, 2015 at 06:33:24AM +0000, dirson@debian.org wrote:
> Package: apt
> Version: 0.8.10.3+squeeze1
> Severity: wishlist
> 
> apt-key hardcodes several paths which belong to the apt config, at least:
> /etc/apt/secring.gpg
> /etc/apt/trustdb.gpg

That's not true anymore. It specifically runs apt-config shell now after setting
the default.

> 
> There are also references to /var/lib/apt/keyrings which are probably in the same
> situation.

That's in net-update, which is disabled.

In short: I'm closing this bug, as it's fixed.

-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.

Be friendly, do not top-post, and follow RFC 1855 "Netiquette".
    - If you don't I might ignore you.

--- End Message ---

Reply to: