aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-createbuildenv
diff options
context:
space:
mode:
Diffstat (limited to 'pbuilder-createbuildenv')
-rwxr-xr-xpbuilder-createbuildenv9
1 files changed, 8 insertions, 1 deletions
diff --git a/pbuilder-createbuildenv b/pbuilder-createbuildenv
index 944d1c7..9435bff 100755
--- a/pbuilder-createbuildenv
+++ b/pbuilder-createbuildenv
@@ -40,7 +40,7 @@ cleanbuildplace
echo "Building the build environment"
mkdir -p "$BUILDPLACE"
if [ ! -d "$BUILDPLACE" ]; then
- echo "pbuilder: Could not make directory [$BUILDPLACE]" >&2
+ echo "E: Could not make directory [$BUILDPLACE]" >&2
exit 1
fi
@@ -55,6 +55,13 @@ if [ -n "$HOOKDIR" ]; then
fi
fi
+if which "${DEBOOTSTRAP}"; then
+ : # debootstrap exists
+else
+ echo "E: ${DEBOOTSTRAP} does not exist, install or change DEBOOTSTRAP option" >&2
+ exit 1
+fi
+
if ! ( cd "$BUILDPLACE" && "${DEBOOTSTRAP}" "${DEBOOTSTRAPOPTS[@]}" "$DISTRIBUTION" . "$MIRRORSITE" $DEBOOTSTRAPSCRIPT ) ; then
echo "pbuilder: $DEBOOTSTRAP failed" >&2
exit 1