echo "!!!"
sleep 10
if do_latest_snapshot; then
+ rm -fr "${TMPDIR}"
cleanse_state_dir
exit 0
fi
if [[ -z ${base_version} ]]; then
echo "no base found. resorting to pulling a full version"
if do_latest_snapshot; then
+ rm -fr "${TMPDIR}"
cleanse_state_dir
exit 0
fi
if [[ ${WEBSYNC_VERIFY_SIGNATURE} == 1 ]] ; then
check_file_signature "${DISTDIR}/portage-${base_date}.tar.bz2.gpgsig" "${dfile}" || exit 1
fi
- sync_local "${dfile}"
+ sync_local "${dfile}" && rm -fr "${TMPDIR}"
else
- :
+ rm -fr "${TMPDIR}"
fi
exit $?
fi
echo "reconstruction failed (contact the author with the error from the reconstructor please)"
rm -f "${TMPDIR}/portage-${final_date}.tar"
if do_latest_snapshot; then
+ rm -fr "${TMPDIR}"
cleanse_state_dir
exit 0
fi