2 # it's bash because mksh can do only 32bit arithemtic
4 REPODIR=${1:-/home/pld/admins/th/ftp/test}
8 ls -1 $REPODIR/SRPMS/RPMS | sed -rne "s/^((.+)-[^-]+-[^-]+\.src\.rpm)$/\1.info/p" | \
10 for f in `awk -F ':' -vD="$REPODIR/" '/file:/ { if ($0 ~ /-debuginfo-/) { print D $2 "/debuginfo/" $3 } else { print D $2 "/RPMS/" $3 }}' $REPODIR/SRPMS/.metadata/$pkg` ; do
11 if ! stat $f &>/dev/null ; then
12 echo "!!!: $pkg : $f" >&2