[ Stefan Lippers-Hollmann ]
authorStefan Lippers-Hollmann <s.L-H@gmx.de>
Tue, 8 Feb 2011 21:26:15 +0000 (22:26 +0100)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Tue, 8 Feb 2011 21:26:15 +0000 (22:26 +0100)
* cmdline/apt-key:
  - fix root test which prevented setting of trustdb-name
    which lets gpg fail if it adds/remove keys from trusted.gpg
    as it tries to open the (maybe) not existent /root/.gnupg

cmdline/apt-key
debian/changelog

index c1e01a7..3838faf 100755 (executable)
@@ -7,7 +7,7 @@ unset GREP_OPTIONS
 # implodes if there isn't one available
 GPG_CMD='gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg'
 
-if ! id -u > /dev/null; then
+if [ "$(id -u)" -eq 0 ]; then
        GPG_CMD="$GPG_CMD --trustdb-name /etc/apt/trustdb.gpg"
 fi
 
index 51f55c9..6081841 100644 (file)
@@ -1,3 +1,13 @@
+apt (0.8.11.1) unstable; urgency=low
+
+  [ Stefan Lippers-Hollmann ]
+  * cmdline/apt-key:
+    - fix root test which prevented setting of trustdb-name
+      which lets gpg fail if it adds/remove keys from trusted.gpg
+      as it tries to open the (maybe) not existent /root/.gnupg
+
+ -- David Kalnischkies <kalnischkies@gmail.com>  Tue, 08 Feb 2011 22:22:33 +0100
+
 apt (0.8.11) unstable; urgency=low
 
   [ David Kalnischkies ]