]> git.pld-linux.org Git - projects/pld-ftp-admin.git/commitdiff
add to git
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 2 Aug 2015 08:08:21 +0000 (11:08 +0300)
committerElan Ruusamäe <glen@pld-linux.org>
Sat, 5 Sep 2015 20:16:04 +0000 (23:16 +0300)
wwwbin/checkrepo.sh [new file with mode: 0755]

diff --git a/wwwbin/checkrepo.sh b/wwwbin/checkrepo.sh
new file mode 100755 (executable)
index 0000000..f391039
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bash
+# it's bash because mksh can do only 32bit arithemtic
+
+REPODIR=${1:-/home/pld/admins/th/ftp/test}
+
+i=0
+nn=
+ls -1 $REPODIR/SRPMS/RPMS | sed -rne "s/^((.+)-[^-]+-[^-]+\.src\.rpm)$/\1.info/p" | \
+while read pkg ; do
+       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
+               if ! stat $f &>/dev/null ; then
+                       echo "!!!: $pkg : $f" >&2
+               fi
+       done
+done
This page took 0.138419 seconds and 4 git commands to generate.