diff --git a/test-rebuild b/test-rebuild index 28e96a9..614ec2f 100755 --- a/test-rebuild +++ b/test-rebuild @@ -15,18 +15,17 @@ fedpkg local TMP=test-tmp -rm -r $TMP/ -mkdir $TMP/ +mkdir -p $TMP/ cd $(arch) -PKGS=$(rpm -qp --qf "%{name}-%{version}\n" *) +PKGS=$(rpm -qp *) sudo yum install $PKGS for i in $PKGS; do for k in requires provides; do - rpm -qp --$k $(ls -t $i*.rpm | head) > ../$TMP/$i.$k.test + rpm -qp --$k $i.rpm > ../$TMP/$i.$k.test rpm -q --$k $i > ../$TMP/$i.$k.installed diff -u --exclude="rpmlib(FileDigests)" ../$TMP/$i.$k.installed ../$TMP/$i.$k.test > ../$k.$i.diff done