Commit b05bb8cc authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmbsh: don't remove packages from hasher if failed

parent 866d366b
...@@ -116,8 +116,12 @@ if [ "$RESULT" = "0" ] && [ -n "$INSTALLPKG" ] ; then ...@@ -116,8 +116,12 @@ if [ "$RESULT" = "0" ] && [ -n "$INSTALLPKG" ] ; then
$ETERBUILDBIN/loginhsh -Y -t -i -b $BINARYREPO $BINPACKAGES $ETERBUILDBIN/loginhsh -Y -t -i -b $BINARYREPO $BINPACKAGES
RESULT=$? RESULT=$?
echog "Remove packages from test hasher dir ..." if [ "$RESULT" = "0" ] ; then
docmd $ETERBUILDBIN/myhsh -r $MENVARG $BINPACKAGES echog "Remove packages from test hasher dir ..."
docmd $ETERBUILDBIN/myhsh -r $MENVARG $BINPACKAGES
else
echog "Leave packages in the hasher due error result"
fi
fi fi
# remove generated src.rpm # remove generated src.rpm
......
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