]> git.pld-linux.org Git - projects/pld-ftp-admin.git/commitdiff
- skip signing already signed packages
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 19 Oct 2007 14:05:19 +0000 (14:05 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Fri, 19 Oct 2007 14:05:19 +0000 (14:05 +0000)
Changed files:
    shell/bashrc -> 1.2

shell/bashrc

index 60a1996abf4128c232cd8f7233866c30be4cc175..16502372b0e16b92057d0b05c32e8fdb95145fbf 100644 (file)
@@ -54,9 +54,11 @@ signpkg() {
                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() {
This page took 0.062974 seconds and 4 git commands to generate.