From ffa2568b55ef3dfaa673ba5a3681577b8ead8cd0 Mon Sep 17 00:00:00 2001
From: Otavio Salvador <otavio@ossystems.com.br>
Date: Thu, 7 Feb 2008 15:07:13 -0200
Subject: 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.
---
helpers/lh_bootstrap_debootstrap | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/helpers/lh_bootstrap_debootstrap b/helpers/lh_bootstrap_debootstrap
index a69a086..8bfdd6b 100755
--- a/helpers/lh_bootstrap_debootstrap
+++ b/helpers/lh_bootstrap_debootstrap
@@ -69,7 +69,12 @@ fi
if [ -n "${LH_BOOTSTRAP_CONFIG}" ]
then
- LH_DEBOOTSTRAP_SCRIPT="/usr/lib/debootstrap/scripts/${LH_BOOTSTRAP_CONFIG}"
+ 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}" ]
--
cgit v1.0