summaryrefslogtreecommitdiff
path: root/scripts/tgpg
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-12-29 22:31:00 +0000
committerjbj <devnull@localhost>2002-12-29 22:31:00 +0000
commitcb4b0b8ce12baa3ec035f91e4bd5ad4c0cfa1886 (patch)
tree4ebb3cdd1d277d4d72b093dfd5663e32c710332b /scripts/tgpg
parentc67befa2833503c8864ec906a07ad8b4b617947c (diff)
downloadlibrpm-tizen-cb4b0b8ce12baa3ec035f91e4bd5ad4c0cfa1886.tar.gz
librpm-tizen-cb4b0b8ce12baa3ec035f91e4bd5ad4c0cfa1886.tar.bz2
librpm-tizen-cb4b0b8ce12baa3ec035f91e4bd5ad4c0cfa1886.zip
- fix :armor query extension, tgpg mktmp handling (#80684).
- use rpmfiClass underneath --fileclass. CVS patchset: 5985 CVS date: 2002/12/29 22:31:00
Diffstat (limited to 'scripts/tgpg')
-rwxr-xr-xscripts/tgpg5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/tgpg b/scripts/tgpg
index 4ab738265..21c1ffac0 100755
--- a/scripts/tgpg
+++ b/scripts/tgpg
@@ -1,5 +1,6 @@
#!/bin/sh
+
for pkg in $*
do
if [ "$pkg" = "" -o ! -e "$pkg" ]; then
@@ -7,8 +8,8 @@ do
exit 1
fi
- plaintext=`mktemp $0-$$.XXXXXX`
- detached=`mktemp $0-$$.XXXXXX`
+ plaintext=`mktemp /tmp/tgpg-$$.XXXXXX`
+ detached=`mktemp /tmp/tgpg-$$.XXXXXX`
# --- Extract detached signature
rpm -qp -vv --qf '%{siggpg:armor}' $pkg > $detached