X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;ds=sidebyside;f=wwwbin%2Fcheckrepo.sh;fp=wwwbin%2Fcheckrepo.sh;h=0000000000000000000000000000000000000000;hb=f7b22268ab563fa906be0653d037f1805e220e5c;hp=db2cff1bc34739323513d2f7b17956d6fc9964f7;hpb=b7b854ca43601a08077b7c4c4fa1313a198d936a;p=tld-ftp-admin.git diff --git a/wwwbin/checkrepo.sh b/wwwbin/checkrepo.sh deleted file mode 100755 index db2cff1..0000000 --- a/wwwbin/checkrepo.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh -# stat(1) each file in .info to see if they exist - -REPODIR=${1:-/home/pld/admins/th/ftp/test} - -# expand files from .info file -expand_info() { - awk -F ':' -vD="$REPODIR/" ' - /file:/ { - if (/-debuginfo-/) { - print D $2 "/debuginfo/" $3 - } else { - print D $2 "/RPMS/" $3 - } - } - ' "$@" -} - -i=0 -nn= -ls -1 $REPODIR/SRPMS/RPMS | sed -rne "s/^((.+)-[^-]+-[^-]+\.src\.rpm)$/\1.info/p" | \ -while read pkg; do - for f in $(expand_info $REPODIR/SRPMS/.metadata/$pkg); do - if ! stat $f >/dev/null; then - echo "!!!: $pkg : $f" >&2 - fi - done -done