aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-createbuildenv
diff options
context:
space:
mode:
authordancer <dancer>2001-10-12 16:31:18 +0000
committerdancer <dancer>2001-10-12 16:31:18 +0000
commit5d1410da15e917828dc5dd1e2d0033b8889d6046 (patch)
treef73d2c6a3be95a9814f096942bf4515eef572262 /pbuilder-createbuildenv
parent9d393d0b01dc818c2d53441226d6b8b5f9eb499a (diff)
downloadpbuilder-5d1410da15e917828dc5dd1e2d0033b8889d6046.tar
pbuilder-5d1410da15e917828dc5dd1e2d0033b8889d6046.tar.gz
fixed my logical disorder.
Diffstat (limited to 'pbuilder-createbuildenv')
-rwxr-xr-xpbuilder-createbuildenv8
1 files changed, 7 insertions, 1 deletions
diff --git a/pbuilder-createbuildenv b/pbuilder-createbuildenv
index 8da12dc..e42a185 100755
--- a/pbuilder-createbuildenv
+++ b/pbuilder-createbuildenv
@@ -19,13 +19,19 @@ if [ ! -d "$BUILDPLACE" ]; then
exit 1
fi
echo " -> running debootstrap"
+DEBOOTSTRAPSCRIPT=""
+if [ -n "$HOOKDIR" ]; then
+ if [ -f "$HOOKDIR/$DISTRIBUTION" ]; then
+ DEBOOTSTRAPSCRIPT="$HOOKDIR/$DISTRIBUTION"
+ echo " -> Applying user distribution dist build script $DEBOOTSTRAPSCRIPT"
+ fi
+fi
if ! ( cd "$BUILDPLACE" && debootstrap "$DISTRIBUTION" . "$MIRRORSITE" "$DEBOOTSTRAPSCRIPT" ) ; then
echo "pbuilder: debootstrap failed" >&2
exit 1
fi
echo " -> debootstrap finished"
-DEBOOTSTRAPSCRIPT=""
if [ -n "$HOOKDIR" ]; then
loadhooks
fi