blob: 6d16aa87104b08e8e32d8848433c5197260bd3d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
file="$1"
key="$2"
keydir="$3"
tmpfile=`mktemp`
cp -pf "$file" "$tmpfile"
rpm --delsign "$tmpfile"
/usr/bin/mga-signpackage "$tmpfile" "$key" "$keydir"
while rpmsign -Kv "$tmpfile" 2>&1 | grep BAD
do
cp -pf "$file" "$tmpfile"
/usr/bin/mga-signpackage "$tmpfile" "$key" "$keydir"
done
mv -f "$tmpfile" "$file"
|