test-rebuild.sh: epel support
This commit is contained in:
parent
493f56fc43
commit
649621d68e
@ -21,11 +21,17 @@ ARCH=$(arch)
|
||||
# exit 1
|
||||
#fi
|
||||
|
||||
if [ -f /etc/os-release ]; then
|
||||
eval $(grep VERSION_ID /etc/os-release)
|
||||
case $VERSION_ID in
|
||||
21) BRANCH=master ;;
|
||||
7.*) BRANCH=el7 ;;
|
||||
*) BRANCH="f$VERSION_ID" ;;
|
||||
esac
|
||||
else
|
||||
# assume RHEL6
|
||||
BRANCH=el6
|
||||
fi
|
||||
|
||||
fedpkg switch-branch $BRANCH
|
||||
|
||||
@ -34,6 +40,8 @@ if [ "* $BRANCH" != "$(git branch --list $BRANCH)" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git pull
|
||||
|
||||
sudo yum-builddep $PKG.spec
|
||||
|
||||
fedpkg local
|
||||
|
Loading…
Reference in New Issue
Block a user