diff --git a/test-rebuild b/test-rebuild index 96e39f8..4df09ed 100755 --- a/test-rebuild +++ b/test-rebuild @@ -5,7 +5,7 @@ PKG=$1 fedpkg clone -a $PKG cd $PKG -sudo yum build-depends $PKG +sudo yum builddep $PKG fedpkg local @@ -19,7 +19,7 @@ sudo yum install $PKGS for i in $PKGS; do for k in requires provides; do - rpm -qp --$k $i*.rpm > ../test/$i.$k.test + rpm -qp --$k $(ls $i*.rpm | head) > ../test/$i.$k.test rpm -q --$k $i > ../test/$i.$k.installed diff -u ../test/$i.$k.installed ../test/$i.$k.test > ../$i.$k.diff done