test-rebuild.sh: protect the rpm query commands for when no output

epel9
Jens Petersen 12 years ago
parent 82a1405dd8
commit 4d0b6136b6

@ -34,8 +34,8 @@ PKGS=$(cd $ARCH; rpm -qp $(ls *-$VERREL*.rpm))
for i in $PKGS; do
rpm -q --quiet $i || sudo yum install -q $i
for k in list requires provides scripts; do
rpm -qp --$k $ARCH/$i.rpm | grep -v rpmlib > $TMP/$i.$k.test
rpm -q --$k $i | grep -v rpmlib > $TMP/$i.$k.installed
rpm -qp --$k $ARCH/$i.rpm | grep -v rpmlib > $TMP/$i.$k.test || :
rpm -q --$k $i | grep -v rpmlib > $TMP/$i.$k.installed || :
diff -u $TMP/$i.$k.installed $TMP/$i.$k.test || :
done
done

Loading…
Cancel
Save