bootstrap: adds support to debootstrap 1.0.7

New debootstrap has change the scripts to /usr/share since they're
architecture independent code. The support for it has been added
however it fallback to /usr/lib to keep backward compatibility.
This commit is contained in:
Otavio Salvador 2008-02-07 15:07:13 -02:00 committed by Daniel Baumann
parent bc23f61130
commit ffa2568b55
1 changed files with 6 additions and 1 deletions

View File

@ -69,8 +69,13 @@ fi
if [ -n "${LH_BOOTSTRAP_CONFIG}" ]
then
if [ -d "/usr/share/debootstrap/scripts/" ]
then
LH_DEBOOTSTRAP_SCRIPT="/usr/share/debootstrap/scripts/${LH_BOOTSTRAP_CONFIG}"
else
LH_DEBOOTSTRAP_SCRIPT="/usr/lib/debootstrap/scripts/${LH_BOOTSTRAP_CONFIG}"
fi
fi
if [ -n "${LH_BOOTSTRAP_INCLUDE}" ]
then