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 ...@@ -251,9 +251,7 @@ if [ -n "$UPLOADNOW" ] && is_gear $SPECDIR ; then
echo "Prepare to publish to $GIRARHOST..." echo "Prepare to publish to $GIRARHOST..."
cd $SPECDIR || fatal cd $SPECDIR || fatal
# select needed branch if set_usebranch ; then
if [ -n "$BINARYREPO" ] ; then
set_usebranch
checkout_usebranch || fatal checkout_usebranch || fatal
fi fi
......
...@@ -11,6 +11,9 @@ set_usebranch() ...@@ -11,6 +11,9 @@ set_usebranch()
#[ -f "$LISTNAMES" ] || fatal "Run with one spec inside gear repo" #[ -f "$LISTNAMES" ] || fatal "Run with one spec inside gear repo"
USEBRANCH=$BINARYREPO USEBRANCH=$BINARYREPO
[ -n "$USEBRANCH" ] || return 1
[ "$USEBRANCH" = "sisyphus" ] && return 1
# TODO: drop support of it # TODO: drop support of it
# support for obsoleted M?? names # support for obsoleted M?? names
OLDBRANCH=$MDISTR OLDBRANCH=$MDISTR
...@@ -21,6 +24,8 @@ set_usebranch() ...@@ -21,6 +24,8 @@ set_usebranch()
USEBRANCH=$OLDBRANCH USEBRANCH=$OLDBRANCH
fi fi
fi fi
return 0
} }
# used: USEBRANCH OLDBRANCH BPSPEC # 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