From e399d7ff29b76e8e3c1cb515b9d67971e9250ec8 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 5 Oct 2012 19:27:16 +0900 Subject: [PATCH] test-rebuild: rename test/ to test-tmp/ ; use ls -t; exclude rpmlib(FileDigests) --- test-rebuild | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/test-rebuild b/test-rebuild index 7ecd93f..28e96a9 100755 --- a/test-rebuild +++ b/test-rebuild @@ -13,7 +13,10 @@ fi sudo yum-builddep $PKG.spec fedpkg local -mkdir -p test +TMP=test-tmp + +rm -r $TMP/ +mkdir $TMP/ cd $(arch) @@ -23,8 +26,8 @@ sudo yum install $PKGS for i in $PKGS; do for k in requires provides; do - 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 + rpm -qp --$k $(ls -t $i*.rpm | head) > ../$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 done