From 82a1405dd812353c08b8f75f281a1a8e19267f0b Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sat, 20 Oct 2012 14:34:44 +0900 Subject: [PATCH] test-rebuild.sh: test if package is installed before yum install --- test-rebuild.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-rebuild.sh b/test-rebuild.sh index 21b64ea..92f1972 100755 --- a/test-rebuild.sh +++ b/test-rebuild.sh @@ -32,7 +32,7 @@ mkdir -p $TMP/ PKGS=$(cd $ARCH; rpm -qp $(ls *-$VERREL*.rpm)) for i in $PKGS; do - sudo yum install -q $i + 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