diff options
author | dancer <dancer> | 2005-11-03 02:33:42 +0000 |
---|---|---|
committer | dancer <dancer> | 2005-11-03 02:33:42 +0000 |
commit | e0298cd59e867962b0558752c40992c4c57abbe0 (patch) | |
tree | 6f1c303832fd6d333f6a367a75e34d818df54bdd /pbuilder-createbuildenv | |
parent | 74649033aac7d29bc832379ae5cdd6131cf5de1d (diff) | |
download | pbuilder-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-x | pbuilder-createbuildenv | 9 |
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 |