From a13d4b8b200d14ac90c97cd812a8a681e7d82ab5 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 9 Oct 2012 13:22:50 +0900 Subject: [PATCH] test-rebuild.sh: use "fedpkg verrel" to find built rpms --- test-rebuild.sh | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/test-rebuild.sh b/test-rebuild.sh index d25602e..37f2e3f 100755 --- a/test-rebuild.sh +++ b/test-rebuild.sh @@ -8,19 +8,19 @@ PKG=$1 [ -d "$PKG" ] && cd $PKG +ARCH=$(arch) + +#if [ -d $ARCH ]; then +# echo Please move existing $ARCH/ +# exit 1 +#fi + if [ -n "$2" ]; then fedpkg switch-branch $2 fi sudo yum-builddep $PKG.spec -ARCH=$(arch) - -if [ -d $ARCH ]; then - echo Please move existing $ARCH/ - exit 1 -fi - fedpkg local TMP=test-tmp @@ -29,7 +29,9 @@ mkdir -p $TMP/ cd $ARCH -PKGS=$(rpm -qp *) +VERREL=$(fedpkg verrel | sed -e "s/^$PKG-//") + +PKGS=$(rpm -qp *-$VERREL) for i in $PKGS; do sudo yum install $i