xbps-src/shutils: remove unused $origin_tmpl stuff.
--HG-- extra : convert_revision : de50b832bdd8fc64c1a94856248e749eafac84c9
This commit is contained in:
parent
38496b3618
commit
16808930aa
|
@ -281,12 +281,7 @@ if [ $? -ne 0 ]; then
|
|||
fi
|
||||
|
||||
if [ "$(id -u)" -ne 0 ]; then
|
||||
if [ -n "$origin_tmpl" ]; then
|
||||
. $XBPS_SHUTILSDIR/tmpl_funcs.sh
|
||||
reset_tmpl_vars
|
||||
cd ../$origin_tmpl && . template
|
||||
fi
|
||||
echo "The '$pkgname' package requires to be installed in a chroot."
|
||||
echo "This package requires to be installed in a chroot."
|
||||
echo "You cannot do this as normal user, try again being root."
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
@ -48,12 +48,6 @@ install_pkg()
|
|||
setup_tmpl $curpkgn
|
||||
fi
|
||||
|
||||
#
|
||||
# If we are the originator package save the path for this template in
|
||||
# other var for future use.
|
||||
#
|
||||
[ -z "$origin_tmpl" ] && origin_tmpl=$pkgname
|
||||
|
||||
if [ -z "$base_chroot" -a -z "$in_chroot" ]; then
|
||||
. $XBPS_SHUTILSDIR/chroot.sh
|
||||
[ -n "$install_destdir_target" ] && cdestdir=yes
|
||||
|
|
Loading…
Reference in New Issue