]> git.pld-linux.org Git - projects/pld-ftp-admin.git/blame - wwwbin/checkrepo.sh
Support for split debugsource packaes
[projects/pld-ftp-admin.git] / wwwbin / checkrepo.sh
CommitLineData
2ef952ab
ER
1#!/bin/sh
2# stat(1) each file in .info to see if they exist
79bfa541
ER
3
4REPODIR=${1:-/home/pld/admins/th/ftp/test}
5
2ef952ab
ER
6# expand files from .info file
7expand_info() {
8 awk -F ':' -vD="$REPODIR/" '
9 /file:/ {
20313fad 10 if (/-debug(info|source)-/) {
2ef952ab
ER
11 print D $2 "/debuginfo/" $3
12 } else {
13 print D $2 "/RPMS/" $3
14 }
15 }
16 ' "$@"
17}
18
79bfa541
ER
19i=0
20nn=
21ls -1 $REPODIR/SRPMS/RPMS | sed -rne "s/^((.+)-[^-]+-[^-]+\.src\.rpm)$/\1.info/p" | \
2ef952ab
ER
22while read pkg; do
23 for f in $(expand_info $REPODIR/SRPMS/.metadata/$pkg); do
24 if ! stat $f >/dev/null; then
79bfa541
ER
25 echo "!!!: $pkg : $f" >&2
26 fi
27 done
28done
This page took 0.300213 seconds and 4 git commands to generate.