summaryrefslogtreecommitdiff
path: root/cmdline/apt-key
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-10-05 20:52:42 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2011-10-05 20:52:42 +0200
commit27c251b98640130c7d9a3dae6fd66a8a4a22b6d5 (patch)
tree3ca675825233e9fe1e251198ff08fa95e29e2def /cmdline/apt-key
parenta57ced3e09b68fa3afda71605a51f87304ca7f5d (diff)
cmdline/apt-key: use --output instead of the the pipe and import, thanks to mdeslaur and infinity for the code review
Diffstat (limited to 'cmdline/apt-key')
-rwxr-xr-xcmdline/apt-key2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdline/apt-key b/cmdline/apt-key
index cd7824df1..c522d54fe 100755
--- a/cmdline/apt-key
+++ b/cmdline/apt-key
@@ -63,7 +63,7 @@ add_keys_with_verify_against_master_keyring() {
# export the add keyring one-by-one
rm -f $TMP_KEYRING
- $GPG_CMD --keyring $ADD_KEYRING --export $add_key | $GPG_CMD --keyring $TMP_KEYRING --import --trust-model direct
+ $GPG_CMD --keyring $ADD_KEYRING --export $add_key --output $TMP_KEYRING
# check if signed with the master key and only add in this case
ADDED=0