From 4f1f547f247d13323563f58f59c5f7f526af83f7 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 5 Oct 2012 19:58:56 +0900 Subject: [PATCH] test-rebuild: filter out rpmlib lines; diff can't filter lines --- test-rebuild | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test-rebuild b/test-rebuild index eba4cb0..d6adc92 100755 --- a/test-rebuild +++ b/test-rebuild @@ -35,8 +35,8 @@ sudo yum install $PKGS for i in $PKGS; do for k in requires provides; do - 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 + rpm -qp --$k $i.rpm | grep -v rpmlib > ../$TMP/$i.$k.test + rpm -q --$k $i | grep -v rpmlib > ../$TMP/$i.$k.installed + diff -u ../$TMP/$i.$k.installed ../$TMP/$i.$k.test > ../$k.$i.diff done done