xbps-src: do not append $PATH to $PATH on every prepare_tmpl() call!
--HG-- rename : xbps-src/shutils/tmpl_funcs.sh => xbps-src/shutils/tmpl_funcs.sh.in
This commit is contained in:
parent
aeb5bb84af
commit
481e74178e
2 changed files with 6 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
|||
include ../vars.mk
|
||||
|
||||
SCRIPTS = chroot.sh init_funcs.sh pkgtarget_funcs.sh
|
||||
SCRIPTS = tmpl_funcs.sh chroot.sh init_funcs.sh pkgtarget_funcs.sh
|
||||
|
||||
.PHONY: all
|
||||
all:
|
||||
|
|
|
@ -237,13 +237,11 @@ prepare_tmpl()
|
|||
set_tmpl_common_vars
|
||||
|
||||
if [ -z "$in_chroot" ]; then
|
||||
local _PATH
|
||||
_PATH="$XBPS_MASTERDIR/bin:$XBPS_MASTERDIR/sbin"
|
||||
_PATH="${_PATH}:$XBPS_MASTERDIR/usr/bin"
|
||||
_PATH="${_PATH}:$XBPS_MASTERDIR/usr/sbin"
|
||||
_PATH="${_PATH}:/bin:/sbin:/usr/bin:/usr/sbin"
|
||||
_PATH="${_PATH}:/usr/local/sbin"
|
||||
export PATH="${_PATH}:${PATH}"
|
||||
export PATH="$XBPS_MASTERDIR/bin:$XBPS_MASTERDIR/sbin"
|
||||
export PATH="$PATH:$XBPS_MASTERDIR/usr/bin"
|
||||
export PATH="$PATH:$XBPS_MASTERDIR/usr/sbin"
|
||||
export PATH="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
|
||||
export PATH="$PATH:/sbin:@@XBPS_INSTALL_PREFIX@@/sbin"
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in a new issue