From eb601b5e70f4f464acdb464a5c338ae561ebf33a Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 5 Oct 2012 19:05:57 +0900 Subject: [PATCH] test-rebuild: allow building from cwd or existing subdir; builddep on spec file --- test-rebuild | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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