Commit 8fbcf212 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmbs: fix build on sisyphus

parent e97a8e33
......@@ -251,9 +251,7 @@ if [ -n "$UPLOADNOW" ] && is_gear $SPECDIR ; then
echo "Prepare to publish to $GIRARHOST..."
cd $SPECDIR || fatal
# select needed branch
if [ -n "$BINARYREPO" ] ; then
set_usebranch
if set_usebranch ; then
checkout_usebranch || fatal
fi
......
......@@ -11,6 +11,9 @@ set_usebranch()
#[ -f "$LISTNAMES" ] || fatal "Run with one spec inside gear repo"
USEBRANCH=$BINARYREPO
[ -n "$USEBRANCH" ] || return 1
[ "$USEBRANCH" = "sisyphus" ] && return 1
# TODO: drop support of it
# support for obsoleted M?? names
OLDBRANCH=$MDISTR
......@@ -21,6 +24,8 @@ set_usebranch()
USEBRANCH=$OLDBRANCH
fi
fi
return 0
}
# used: USEBRANCH OLDBRANCH BPSPEC
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment