aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-createbuildenv
diff options
context:
space:
mode:
authordancer <dancer>2005-08-07 04:14:48 +0000
committerdancer <dancer>2005-08-07 04:14:48 +0000
commit44f99bd88ef35a45461c47255cbfb0cfc05a6dd3 (patch)
treed31c6a51a3f93709e6072c779b54d36eda2bd2ce /pbuilder-createbuildenv
parent9d0a4846c5a92ac3130344aa899913ed3f7ceece (diff)
downloadpbuilder-44f99bd88ef35a45461c47255cbfb0cfc05a6dd3.tar
pbuilder-44f99bd88ef35a45461c47255cbfb0cfc05a6dd3.tar.gz
+2005-08-07 Junichi Uekawa <dancer@debian.org>
+ + * debian/control: allow cdebootstrap dependency. + + * testsuite/run-test.sh: complicate the process by testing both + cdebootstrap and debootstrap. + + * pbuilder.8: document --debootstrap + + * pbuilder-checkparams: --debootstrap + + * pbuilder-modules: --debootstrap + + * pbuilder-createbuildenv: unset DEBOOTSTRAPSCRIPT instead of setting + "". The number of parameter given to cdebootstrap changes. + since DEBOOTSTRAPSCRIPT are not supported by cdebootstrap, + Giving cdebootstrap this parameter caused it to fail. + + * pbuilderrc.5: Document DEBOOTSTRAP + + * pbuilderrc (DEBOOTSTRAP): new option. + + * pbuilder-createbuildenv (DEBOOTSTRAPSCRIPT): call ${DEBOOTSTRAP} instead of calling debootstrap directly. +
Diffstat (limited to 'pbuilder-createbuildenv')
-rwxr-xr-xpbuilder-createbuildenv8
1 files changed, 4 insertions, 4 deletions
diff --git a/pbuilder-createbuildenv b/pbuilder-createbuildenv
index c474984..6485438 100755
--- a/pbuilder-createbuildenv
+++ b/pbuilder-createbuildenv
@@ -45,8 +45,8 @@ if [ ! -d "$BUILDPLACE" ]; then
fi
$TRAP cleanbuildplace exit
-echo " -> running debootstrap"
-DEBOOTSTRAPSCRIPT=""
+echo " -> running $DEBOOTSTRAP"
+unset DEBOOTSTRAPSCRIPT
if [ -n "$HOOKDIR" ]; then
if [ -f "$HOOKDIR/$DISTRIBUTION" ]; then
DEBOOTSTRAPSCRIPT=$(readlink -f $HOOKDIR)"/$DISTRIBUTION"
@@ -54,8 +54,8 @@ if [ -n "$HOOKDIR" ]; then
fi
fi
-if ! ( cd "$BUILDPLACE" && debootstrap "${DEBOOTSTRAPOPTS[@]}" "$DISTRIBUTION" . "$MIRRORSITE" "$DEBOOTSTRAPSCRIPT" ) ; then
- echo "pbuilder: debootstrap failed" >&2
+if ! ( cd "$BUILDPLACE" && "${DEBOOTSTRAP}" "${DEBOOTSTRAPOPTS[@]}" "$DISTRIBUTION" . "$MIRRORSITE" $DEBOOTSTRAPSCRIPT ) ; then
+ echo "pbuilder: $DEBOOTSTRAP failed" >&2
exit 1
fi