diff --git a/test-rebuild b/test-rebuild index 4df09ed..be6a46a 100755 --- a/test-rebuild +++ b/test-rebuild @@ -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