From e0298cd59e867962b0558752c40992c4c57abbe0 Mon Sep 17 00:00:00 2001 From: dancer Date: Thu, 3 Nov 2005 02:33:42 +0000 Subject: fixed documentation, added changes to createbuildenv to chek for error state when debootstrap/cdebootstrap does not exist. Documentation update. --- pbuilder-createbuildenv | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'pbuilder-createbuildenv') 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 -- cgit v1.2.3