Commit 3f9b7da9 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmbph: use tmpdir for repack src.rpm

parent 7bac1234
......@@ -471,7 +471,8 @@ unset MENV MENVARG
# handle src.rpm and spec both, LISTBUILT - result with full paths to src.rpms
pack_src_rpm $LISTNAMES
export RPMTOPDIR=$RPMDIR/BP
export RPMTOPDIR=$(mktemp -d || fatal "can't create tmp dir")
mark_file_to_remove $RPMTOPDIR
# prevent gear detecting (operate inside our dir)
export IGNOREGEAR=1
......@@ -490,3 +491,5 @@ for i in $LISTBUILT ; do
uni_rpmrm $SPECNAME || true
done
rm -rf $RPMTOPDIR
remove_file_from_remove $RPMTOPDIR
......@@ -27,7 +27,7 @@ fatal()
{
print_message Error "$@"
if [ -n "$ETERSOFT_FATAL_REMOVE_FILES" ]; then
rm -vf $ETERSOFT_FATAL_REMOVE_FILES
rm -rvf $ETERSOFT_FATAL_REMOVE_FILES
fi
exit 1
}
......
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