pld-ftp-admin: shell/bashrc - skip signing already signed packages
glen
glen at pld-linux.org
Fri Oct 19 16:05:24 CEST 2007
Author: glen Date: Fri Oct 19 14:05:24 2007 GMT
Module: pld-ftp-admin Tag: HEAD
---- Log message:
- skip signing already signed packages
---- Files affected:
pld-ftp-admin/shell:
bashrc (1.1 -> 1.2)
---- Diffs:
================================================================
Index: pld-ftp-admin/shell/bashrc
diff -u pld-ftp-admin/shell/bashrc:1.1 pld-ftp-admin/shell/bashrc:1.2
--- pld-ftp-admin/shell/bashrc:1.1 Tue Sep 11 22:25:01 2007
+++ pld-ftp-admin/shell/bashrc Fri Oct 19 16:05:19 2007
@@ -54,9 +54,11 @@
echo >&2 "signpkg: Specify existing info file"
return
fi
+ local key=$(rpm -E '%_gpg_name')
awk -F: '/^file:/{arch=$2; file=$3; printf("../../%s/RPMS/%s\n", arch, file)}' "$@" | \
- xargs -l512 \
- rpm --resign
+ xargs -l1 -ri rpm -qp --qf '{} %{SIGGPG:pgpsig}\n' {} 2>/dev/null | \
+ awk -vk="$key" '$2 ~ k {print $1}' | \
+ xargs -l512 -r rpm --resign
}
testsignpkg() {
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-ftp-admin/shell/bashrc?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list