diff --git a/test-rebuild b/test-rebuild index be6a46a..ba2ce91 100755 --- a/test-rebuild +++ b/test-rebuild @@ -6,6 +6,10 @@ PKG=$1 [ -d "$PKG" ] && cd $PKG +if [ -n "$2" ]; then + fedpkg switch-branch $2 +fi + sudo yum builddep $PKG.spec fedpkg local