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
|
@ -206,6 +206,8 @@ chroot_handler() {
|
|||
[ -n "$XBPS_ALT_REPOSITORY" ] && arg="$arg -r $XBPS_ALT_REPOSITORY"
|
||||
[ -n "$XBPS_USE_GIT_REVS" ] && arg="$arg -G"
|
||||
[ -n "$XBPS_PKG_OPTIONS" ] && arg="$arg -o $XBPS_PKG_OPTIONS"
|
||||
[ -n "$XBPS_TEMP_MASTERDIR" ] && arg="$arg -t -C"
|
||||
[ -n "$XBPS_BINPKG_EXISTS" ] && arg="$arg -E"
|
||||
|
||||
action="$arg $action"
|
||||
env -i PATH="/usr/bin:/usr/sbin:$PATH" HOME=/tmp IN_CHROOT=1 LANG=en_US.UTF-8 \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue