aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-createbuildenv
diff options
context:
space:
mode:
authordancer <dancer>2005-11-03 02:33:42 +0000
committerdancer <dancer>2005-11-03 02:33:42 +0000
commite0298cd59e867962b0558752c40992c4c57abbe0 (patch)
tree6f1c303832fd6d333f6a367a75e34d818df54bdd /pbuilder-createbuildenv
parent74649033aac7d29bc832379ae5cdd6131cf5de1d (diff)
downloadpbuilder-e0298cd59e867962b0558752c40992c4c57abbe0.tar
pbuilder-e0298cd59e867962b0558752c40992c4c57abbe0.tar.gz
fixed documentation, added changes to createbuildenv to chek for error state
when debootstrap/cdebootstrap does not exist. Documentation update.
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