X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;ds=sidebyside;f=update-archive%2Fupdate-yum-archive.sh;h=a1a3fbd4e6fca321a07714a587ccb86e2d6a8a8a;hb=de9d248a70f3fac16b81b0907e9002692b3e1178;hp=1e3f6339925c5189136e45a86886a67ba6f2f0d2;hpb=2bf4ffbff76ea90ca6a3605d446d8c7f3237c80e;p=git-tools-moved-to-github.git diff --git a/update-archive/update-yum-archive.sh b/update-archive/update-yum-archive.sh index 1e3f633..a1a3fbd 100755 --- a/update-archive/update-yum-archive.sh +++ b/update-archive/update-yum-archive.sh @@ -86,11 +86,19 @@ for vdist in centos/5.5 rhel/5.5 centos/6; do for arch in $architectures; do mkdir -p $d/${arch}/Packages for f in $distdir/RPMS/${arch}/*.rpm $distdir/RPMS/noarch/*.rpm; do + b=`basename $f` if test -f $f; then + mustsign=false age=`stat --printf='%Y' $f` if expr $now - $age \< $signage >/dev/null; then + mustsign=true + fi + if test ! -f $d/${arch}/Packages/$b; then + mustsign=true + fi + if $mustsign; then ln -sf $f $d/${arch}/Packages/ - if rpm -K $f|grep -q ' gpg' >/dev/null; then + if rpm -K $f|grep -q 'GPG' >/dev/null; then echo "Already signed $f" else expect << __EOF