]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-key.in
fix crash in order writing in pkgDPkgPM::WriteApportReport()
[apt.git] / cmdline / apt-key.in
index 0774cf4b7ad4ddc8d4ff873f34ab5a8dec80a3c5..b4e0710006882c72c968dd604f22a6efa4001005 100644 (file)
@@ -180,7 +180,7 @@ update() {
 remove_key_from_keyring() {
     local GPG="$GPG_CMD --keyring $1"
     # check if the key is in this keyring: the key id is in the 5 column at the end
-    if ! $GPG --with-colons --list-keys 2>&1 | grep -q "^pub:[^:]*:[^:]*:[^:]*:[0-9A-F]\+$2:"; then
+    if ! $GPG --with-colons --list-keys 2>&1 | grep -q "^pub:[^:]*:[^:]*:[^:]*:[0-9A-F]*$2:"; then
        return
     fi
     if [ ! -w "$1" ]; then