test-rebuild: allow building from cwd or existing subdir; builddep on spec file
This commit is contained in:
parent
8b059158ba
commit
eb601b5e70
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
PKG=$1
|
PKG=$1
|
||||||
|
|
||||||
fedpkg clone -a $PKG
|
[ -d "$PKG" -o -f "$PKG.spec" ] || fedpkg clone -a $PKG
|
||||||
cd $PKG
|
|
||||||
|
|
||||||
sudo yum builddep $PKG
|
[ -d "$PKG" ] && cd $PKG
|
||||||
|
|
||||||
|
sudo yum builddep $PKG.spec
|
||||||
fedpkg local
|
fedpkg local
|
||||||
|
|
||||||
mkdir -p test
|
mkdir -p test
|
||||||
|
Loading…
Reference in New Issue
Block a user