Commit 1221d55d authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmbsh: cleanup code

parent 80f6f6b5
...@@ -74,7 +74,6 @@ mygetopts $LISTARGS ...@@ -74,7 +74,6 @@ mygetopts $LISTARGS
# If fail, we already has correct changelog # If fail, we already has correct changelog
add_changelog_helper "- new version" $LISTNAMES add_changelog_helper "- new version" $LISTNAMES
#echo ${LISTRPMARGS/\-m/} @ ${LISTRPMARGS} @${LISTNAMES}
# We do not not pass args for myhsh here... # We do not not pass args for myhsh here...
# FIXME: # FIXME:
pack_src_rpm $COMMIT $(echo $LISTRPMARGS | sed -e "s|-[suUic]||g") pack_src_rpm $COMMIT $(echo $LISTRPMARGS | sed -e "s|-[suUic]||g")
...@@ -100,9 +99,8 @@ if [ -n "$REMOTEBUILD" ] ; then ...@@ -100,9 +99,8 @@ if [ -n "$REMOTEBUILD" ] ; then
echo "-------------------------------" echo "-------------------------------"
test "$RESULT" = "0" && echog "It was remote build at $BUILDSERVER" || echog "There is error during remote build at $BUILDSERVER" test "$RESULT" = "0" && echog "It was remote build at $BUILDSERVER" || echog "There is error during remote build at $BUILDSERVER"
else else
cd $RPMTOPDIR/SRPMS && time $ETERBUILDBIN/myhsh $MENVARG $LISTRPMARGS $LISTBUILT time $ETERBUILDBIN/myhsh $MENVARG $LISTRPMARGS $LISTBUILT
RESULT=$? RESULT=$?
cd -
date date
echo "-------------------------------" echo "-------------------------------"
...@@ -110,12 +108,11 @@ fi ...@@ -110,12 +108,11 @@ fi
# make src.rpm if build OK and we have options for rpmbs # make src.rpm if build OK and we have options for rpmbs
if [ "$RESULT" = "0" ] && [ -n "$LISTRPMARGS" ]; then if [ ! "$RESULT" = "0" ] || [ -z "$LISTRPMARGS" ]; then
if is_gear $SPECDIR ; then exit $RESULT
$ETERBUILDBIN/rpmbs $GIRARHOST $MENVARG $LISTRPMARGS $LISTNAMES
else
$ETERBUILDBIN/rpmbs $GIRARHOST $MENVARG $LISTRPMARGS $LISTBUILT
fi
fi fi
exit $RESULT is_gear $SPECDIR && TSKLIST=$LISTNAMES || TSKLIST=$LISTBUILT
$ETERBUILDBIN/rpmbs $GIRARHOST $MENVARG $LISTRPMARGS $TSKLIST
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