From 4d0b6136b6ded968c462530d88aff61457011645 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sat, 20 Oct 2012 15:05:25 +0900 Subject: [PATCH] test-rebuild.sh: protect the rpm query commands for when no output --- test-rebuild.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test-rebuild.sh b/test-rebuild.sh index 92f1972..bf9e4c0 100755 --- a/test-rebuild.sh +++ b/test-rebuild.sh @@ -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