Commit 119bfe84 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmbs: fix set branch name in common task

parent 4f6c5584
...@@ -33,7 +33,7 @@ PREPARETASK= ...@@ -33,7 +33,7 @@ PREPARETASK=
TASKNUMBER= TASKNUMBER=
############################# #############################
Usage="Usage: $name [GIRAR] [-s|-t|-u|-a|-A|-c] [-o -z -n -p --nodeps] [-k [TARGETDIR]] [spec or src.rpm]..." Usage="Usage: $name [GIRAR] [-b REPONAME] [-p POCKET] [-s|-t|-u|-a|-A|-c] [-o -z -n -p --nodeps] [-k [TARGETDIR]] [spec or src.rpm]..."
function mygetopts() function mygetopts()
{ {
name=${0##*/} name=${0##*/}
...@@ -235,8 +235,9 @@ if [ -n "$UPLOADNOW" ] && is_gear $SPECDIR ; then ...@@ -235,8 +235,9 @@ if [ -n "$UPLOADNOW" ] && is_gear $SPECDIR ; then
# if more then one spec, use common task # if more then one spec, use common task
if [ $NUMSPECS -gt 1 ] && [ -z "$PREPARETASK" ] ; then if [ $NUMSPECS -gt 1 ] && [ -z "$PREPARETASK" ] ; then
PREPARETASK=internal PREPARETASK=internal
showcmd ssh $GEARHOST task new # FIXME: no pocket support on git.eter task new?
TASKNUMBER=$(ssh $GEARHOST task new | head -n1) || fatal showcmd ssh $GEARHOST task new $BINARYREPO
TASKNUMBER=$(ssh $GEARHOST task new $BINARYREPO | head -n1) || fatal
[ -n "$TASKNUMBER" ] || fatal "Can't get task number from $GEARHOST" [ -n "$TASKNUMBER" ] || fatal "Can't get task number from $GEARHOST"
fi fi
......
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