Commit 803cbbcc authored by Vitaly Lipatov's avatar Vitaly Lipatov Committed by Vitaly Lipatov

build with gear --commit only via rpmbb

parent f22ff190
......@@ -85,7 +85,7 @@ if [ -n "$BUILDOPT" ] ; then
is_alt || fatal "Sorry, only ALT Linux systems support --short-circuit correctly"
for it in $BUILDOPT
do
uni_rpmbuild $LISTNAMES -b$it $LISTRPMARGS --target $DEFAULTARCH --short-circuit
uni_rpmbuild --commit $LISTNAMES -b$it $LISTRPMARGS --target $DEFAULTARCH --short-circuit
done
exit 0
fi
......@@ -109,7 +109,7 @@ do
LOGFILE="$LOGDIR/`basename $NAMESRPMIN .src.rpm`$MENVARG.log"
echo "Build in native system" >$LOGFILE
rm -f $LOGFILE.failed
(uni_rpmbuild $i -bb $LISTRPMARGS $NODEPS --target $DEFAULTARCH 2>&1 || touch $LOGFILE.failed) | tee -a $LOGFILE
(uni_rpmbuild --commit $i -bb $LISTRPMARGS $NODEPS --target $DEFAULTARCH 2>&1 || touch $LOGFILE.failed) | tee -a $LOGFILE
[ -r "$LOGFILE.failed" ] && RET=1 || RET=0
if [ "$RET" = "0" ] ; then
......
......@@ -16,6 +16,12 @@ uni_rpmbuild()
local ONEPARAM="--quiet"
local TWOPARAM="--quiet"
local THRPARAM="--quiet"
local COMMIT=""
if [ "$1" = "--commit" ] ; then
shift
COMMIT="--commit"
fi
local SPECNAME=$1
local SPECDIR=`dirname $SPECNAME`
......@@ -40,7 +46,7 @@ uni_rpmbuild()
#[ -n "$SPECDIR" ] && [ "$SPECDIR" != "." ] && warning "Spec is not in git dir (SPECDIR='$SPECDIR')"
# build package without MENV checking
if true || [ "$MENV" = "SS" ] ; then
$NICE $GEAR --commit --rpmbuild -- $RPMBUILD "$ONEPARAM" "$TWOPARAM" "$THRPARAM" $@ || RET=$?
$NICE $GEAR $COMMIT --rpmbuild -- $RPMBUILD "$ONEPARAM" "$TWOPARAM" "$THRPARAM" $@ || RET=$?
else
fatal "Build backported src.rpm from git is unsupported now"
# build src.rpm via hasher (on ALT)
......
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