]> git.saurik.com Git - apt.git/commitdiff
ensure apt-key del handles 16-byte key ids
authorJames McCoy <jamessan@debian.org>
Mon, 18 Aug 2014 10:54:19 +0000 (12:54 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Fri, 26 Sep 2014 22:12:15 +0000 (00:12 +0200)
The original patch does not apply against the rewritten apt-key,
but an additional test doesn't hurt.

Closes: 754436
test/integration/test-apt-key

index 337b16a59921e2fea43acc16688b7d53a6bebbde..d5adec5bde08f521b7a1e6665471dcc8d00025ff 100755 (executable)
@@ -74,6 +74,14 @@ pub   2048R/DBAC8DAE 2010-08-18'
        testsuccess test ! -e rootdir/etc/apt/trusted.gpg.d/joesixpack.gpg
        testsuccess cmp keys/joesixpack.pub rootdir/etc/apt/trusted.gpg.d/joesixpack.gpg~
 
+       msgtest 'Test key removal with' 'long key ID'
+       cleanplate
+       cp -a keys/joesixpack.pub rootdir/etc/apt/trusted.gpg.d/joesixpack.gpg
+       testsuccess --nomsg aptkey --fakeroot del 5A90D141DBAC8DAE
+       testempty aptkey list
+       testsuccess test ! -e rootdir/etc/apt/trusted.gpg.d/joesixpack.gpg
+       testsuccess cmp keys/joesixpack.pub rootdir/etc/apt/trusted.gpg.d/joesixpack.gpg~
+
        msgtest 'Test key removal with' 'fingerprint'
        cleanplate
        cp -a keys/joesixpack.pub rootdir/etc/apt/trusted.gpg.d/joesixpack.gpg