]> git.pld-linux.org Git - projects/pld-ftp-admin.git/commitdiff
- report for missing matches
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 6 Aug 2012 15:37:35 +0000 (15:37 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Mon, 6 Aug 2012 15:37:35 +0000 (15:37 +0000)
Changed files:
    wwwbin/consistency-check.sh -> 1.7

wwwbin/consistency-check.sh

index 5a18cb6f9d98162da5166555dec43c90e21f0c4d..3266dcacb70944beb00fa12284d295422e760c25 100644 (file)
@@ -37,16 +37,23 @@ pkg2src() {
        poldek --noignore -Q "$@" --cmd ls -q -s > $t2
 
        # create N-V-R -> N list
-       local pkg error message srpm
+       local pkg error message srpm out
        while read pkg; do
                # there's no space between the columns, so need to match with known archs
                # see https://bugs.launchpad.net/poldek/+bug/1031767
-               sed -rne "s/^($pkg)\.(x86_64|i686|noarch)(.+)-[^-]+-[^-]+\.src\.rpm$/\1\t\3/p" $t2
+               out=$(sed -rne "s/^($pkg)\.(x86_64|i686|noarch)(.+)-[^-]+-[^-]+\.src\.rpm$/\1\t\3/p" $t2)
+               if [ -z "$out" ]; then
+                       echo >&2 "nvr: No match for [$pkg]"
+               fi
+               echo "$out"
        done < $t1 > $t3
 
        while read error pkg message; do
                # error: arcconf-7.0.18786-1: req libstdc++.so.5()(64bit) not found
                srpm=$(awk -vpkg="${pkg%:}" '$1 == pkg {printf("%s.spec", $2)}' $t3)
+               if [ -z "$srpm" ]; then
+                       echo >&2 "srpms: No match for [${pkg%:}]"
+               fi
                echo "$error [$srpm] $pkg $message"
        done < $t
 
This page took 0.058073 seconds and 4 git commands to generate.