]> git.pld-linux.org Git - projects/pld-ftp-admin.git/blob - wwwbin/checkrepo.sh
f391039eb1b10280da561f1044c41942df7e44fe
[projects/pld-ftp-admin.git] / wwwbin / checkrepo.sh
1 #!/bin/bash
2 # it's bash because mksh can do only 32bit arithemtic
3
4 REPODIR=${1:-/home/pld/admins/th/ftp/test}
5
6 i=0
7 nn=
8 ls -1 $REPODIR/SRPMS/RPMS | sed -rne "s/^((.+)-[^-]+-[^-]+\.src\.rpm)$/\1.info/p" | \
9 while read pkg ; do
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
13                 fi
14         done
15 done
This page took 0.024094 seconds and 3 git commands to generate.