test-rebuild.sh: use "fedpkg verrel" to find built rpms

epel9
Jens Petersen 12 years ago
parent 85455e4eb0
commit a13d4b8b20

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

Loading…
Cancel
Save