Commit cca2a36a authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmbs: support for group send from branch

parent b01adf63
#!/bin/bash
# (c) Etersoft 2003-2012
# Author: Vitaly Lipatov <lav@etersoft.ru>, 2012
# (c) Etersoft 2003-2012, 2017
# Author: Vitaly Lipatov <lav@etersoft.ru>, 2012, 2017
# Public domain
#
# BS - build source
......@@ -18,7 +18,7 @@
# load common functions, compatible with local and installed script
. `dirname $0`/../share/eterbuild/functions/common
load_mod rpm tarball alt git web buildsrpm
load_mod rpm tarball alt git web buildsrpm branch
SIGN=
SIGNTAG=
......@@ -250,6 +250,12 @@ 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
checkout_usebranch || fatal
fi
# check release
build_rpms_name "$ln"
pkg_release_check $RELEASE
......@@ -275,6 +281,9 @@ if [ -n "$UPLOADNOW" ] && is_gear $SPECDIR ; then
else
docmd ssh $GEARHOST build $(usearg -b $BINARYREPO sisyphus) $(usearg -p $POCKET) $PROJECTNAME $TAG 2>&1 | tee $RPMDIR/uploaded.log.tmp
fi
checkout_original_branch
# FIXME: incorporate
cat $RPMDIR/uploaded.log.tmp | grep task | head -n2 | tail -n1 >> $RPMDIR/uploaded.log
echo " run $TASKNUMBER task $PROJECTNAME with tag $TAG at $GEARHOST (in $BINARYREPO) at `date "+%c"`" >>$RPMDIR/uploaded.log
......
#!/bin/sh
#!/bin/sh -x
# 2003-2016 (c) Etersoft www.etersoft.ru
# Author: Vitaly Lipatov <lav@etersoft.ru>
# Public domain
......@@ -110,7 +110,7 @@ if [ "$RESULT" = "0" ] && [ -n "$INSTALLPKG" ] ; then
$ETERBUILDBIN/loginhsh -Y -t -i -b $BINARYREPO $BINPACKAGES
RESULT=$?
# test remove packages from test hasher dir
echog"Remove packages from test hasher dir ..."
docmd $ETERBUILDBIN/myhsh -r $MENVARG $BINPACKAGES
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