Commit 319eef4d authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmbsh: run rpmbs only if needed

parent d5b62a51
...@@ -109,13 +109,14 @@ else ...@@ -109,13 +109,14 @@ else
echo "-------------------------------" echo "-------------------------------"
fi fi
RPMBSARGS=$(drop_args "$LISTRPMARGS" i c l)
# make src.rpm if build OK and we have options for rpmbs if [ ! "$RESULT" = "0" ] || [ -z "$RPMBSARGS" ]; then
if [ ! "$RESULT" = "0" ] || [ -z "$LISTRPMARGS" ]; then
exit $RESULT exit $RESULT
fi fi
# make src.rpm if build OK and we have options for rpmbs
is_gear $SPECDIR && TSKLIST=$LISTNAMES || TSKLIST=$LISTBUILT is_gear $SPECDIR && TSKLIST=$LISTNAMES || TSKLIST=$LISTBUILT
$ETERBUILDBIN/rpmbs $GIRARHOST $MENVARG $LISTRPMARGS $TSKLIST $ETERBUILDBIN/rpmbs $GIRARHOST $MENVARG $RPMBSARGS $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