test-rebuild: set -e; require fresh arch dir

epel9
Jens Petersen 12 years ago
parent 6f947c0328
commit a8bcd3741f

@ -1,5 +1,7 @@
#!/bin/sh
set -e
PKG=$1
[ -d "$PKG" -o -f "$PKG.spec" ] || fedpkg clone -a $PKG
@ -11,13 +13,21 @@ if [ -n "$2" ]; then
fi
sudo yum-builddep $PKG.spec
ARCH=$(arch)
if [ -d $ARCH ]; then
echo Please remove $ARCH/
exit 1
fi
fedpkg local
TMP=test-tmp
mkdir -p $TMP/
cd $(arch)
cd $ARCH
PKGS=$(rpm -qp *)

Loading…
Cancel
Save