summaryrefslogtreecommitdiff
path: root/cmdline/apt-key
diff options
context:
space:
mode:
authorbubulle@debian.org <>2007-05-05 08:18:59 +0200
committerbubulle@debian.org <>2007-05-05 08:18:59 +0200
commitd6679f297bac7a136976a33124d4768d9e1b205c (patch)
treed4e52961d09ca924de582bb4431c736889e9bea2 /cmdline/apt-key
parentf6c03f1e14b0e37e8dd06c215b1ae6d5b0799c7b (diff)
parent3036f1e491ec1c71fb8fe9ff35954cebb2574320 (diff)
Sync with Michael
Diffstat (limited to 'cmdline/apt-key')
-rwxr-xr-xcmdline/apt-key4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmdline/apt-key b/cmdline/apt-key
index 7460a24be..90ecae2cf 100755
--- a/cmdline/apt-key
+++ b/cmdline/apt-key
@@ -24,9 +24,9 @@ update() {
$GPG_CMD --quiet --batch --keyring $ARCHIVE_KEYRING --export | $GPG --ignore-time-conflict --import
# remove no-longer used keys
- keys=`$GPG_CMD --keyring $REMOVED_KEYS --with-colons --list-keys|awk '/^pub/{FS=":";print $5}'`
+ keys=`$GPG_CMD --keyring $REMOVED_KEYS --with-colons --list-keys | grep ^pub | cut -d: -f5`
for key in $keys; do
- if $GPG --list-keys --with-colons | awk '/^pub/{FS=":";print $5}'|grep -q $key; then
+ if $GPG --list-keys --with-colons | grep ^pub | cut -d: -f5 | grep -q $key; then
$GPG --quiet --batch --delete-key --yes ${key}
fi
done