test-rebuild: use n-v-r, and keep tmp dir around

epel9
Jens Petersen 12 years ago
parent e399d7ff29
commit 6f947c0328

@ -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

Loading…
Cancel
Save