xbps-src: more improvements for -E and -t options.
If both options are set, check first if the binpkg exists before creating the temporary masterdir, and clean this up properly.
This commit is contained in:
parent
2f524cf66a
commit
bdb798fa64
3 changed files with 27 additions and 25 deletions
|
@ -37,8 +37,8 @@ error_func() {
|
|||
exit_and_cleanup() {
|
||||
local rval=$1
|
||||
|
||||
if [ -n "$XBPS_TEMP_MASTERDIR" ]; then
|
||||
rm -rf "$XBPS_MASTERDIR"
|
||||
if [ -n "$XBPS_TEMP_MASTERDIR" -a "$XBPS_TEMP_MASTERDIR" != "1" ]; then
|
||||
rm -rf "$XBPS_TEMP_MASTERDIR"
|
||||
fi
|
||||
exit ${rval:=0}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue