test-rebuild: allow building from cwd or existing subdir; builddep on spec file

epel9
Jens Petersen 12 years ago
parent 8b059158ba
commit eb601b5e70

@ -2,11 +2,11 @@
PKG=$1
fedpkg clone -a $PKG
cd $PKG
[ -d "$PKG" -o -f "$PKG.spec" ] || fedpkg clone -a $PKG
sudo yum builddep $PKG
[ -d "$PKG" ] && cd $PKG
sudo yum builddep $PKG.spec
fedpkg local
mkdir -p test

Loading…
Cancel
Save