Commit bc0f949f authored by Vitaly Lipatov's avatar Vitaly Lipatov

do not remove temp files when DEBUG is set

parent 195eb173
......@@ -36,7 +36,7 @@ fatal()
SETCOLOR_FAILURE
print_message Error "$@"
SETCOLOR_NORMAL
if [ -n "$ETERSOFT_FATAL_REMOVE_FILES" ]; then
if [ -n "$ETERSOFT_FATAL_REMOVE_FILES" ] && [ -z "$DEBUG" ]; then
rm -rvf $ETERSOFT_FATAL_REMOVE_FILES
fi
exit 1
......
......@@ -42,7 +42,7 @@ eval_spec()
$USEARCH $RPMBUILD -bE --target $SYSARCH $RPMBUILDARG $SPEC 2>/dev/null || cat $SPEC
fi | iconv -f utf8 -r
# FIXME: hack for koi8-r in spec (grep will not work with it)
rm -f $SPECNAME.tmp $SPECNAME.changelog
[ -n "$DEBUG" ] || rm -f $SPECNAME.tmp $SPECNAME.changelog
remove_file_from_remove $SPECNAME.tmp $SPECNAME.changelog
}
......
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