]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-key.in
Fix lzma write support to handle "try again" case
[apt.git] / cmdline / apt-key.in
index cfd4be35d3e6062860e6fbcd150877d00c7bce0f..3ed2a70cec9f62a4f35202619bc8ea1febaf0199 100644 (file)
@@ -193,7 +193,7 @@ remove_key_from_keyring() {
        get_fingerprints_of_keyring "$KEYRINGFILE" > "$FINGERPRINTS"
 
         # strip leading 0x, if present:
-        KEY="$(printf %s "$KEY" | sed s/^0x//)"
+        KEY="${KEY#0x}"
 
        # check if the key is in this keyring
        if ! grep -iq "^[0-9A-F]*${KEY}$" "$FINGERPRINTS"; then