aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-modules
diff options
context:
space:
mode:
authordancer <dancer>2001-11-25 04:30:31 +0000
committerdancer <dancer>2001-11-25 04:30:31 +0000
commitcc00ba0563caa1eea7b924bb130592b3ef737071 (patch)
tree10cae633d97ed6f653d91b11f78e1d37aee41bac /pbuilder-modules
parent4381b7d328c423b583970b19adb52a125eaa0c18 (diff)
downloadpbuilder-cc00ba0563caa1eea7b924bb130592b3ef737071.tar
pbuilder-cc00ba0563caa1eea7b924bb130592b3ef737071.tar.gz
updated some documentation, added more error checking, and some general improvement on the well-being of the package
Diffstat (limited to 'pbuilder-modules')
-rw-r--r--pbuilder-modules14
1 files changed, 12 insertions, 2 deletions
diff --git a/pbuilder-modules b/pbuilder-modules
index a19c565..d090cbd 100644
--- a/pbuilder-modules
+++ b/pbuilder-modules
@@ -122,8 +122,18 @@ function extractbuildplace () {
cleanbuildplace
echo "building the build env"
echo " -> extracting base.tgz"
- mkdir -p "$BUILDPLACE"
- (cd "$BUILDPLACE" && tar xfzp "$BASETGZ")
+ if ! mkdir -p "$BUILDPLACE"; then
+ echo "E: failed to build the directory to chroot"
+ exit 1
+ fi
+ if [ ! -f "$BASETGZ" ]; then
+ echo "E: failed to find $BASETGZ, have you done <pbuilder create> to create your base tarball yet?"
+ exit 1
+ fi
+ if ! (cd "$BUILDPLACE" && tar xfzp "$BASETGZ"); then
+ echo "E: failed to extract $BASETGZ to $BUILDPLACE"
+ exit 1
+ fi
mountproc
mkdir -p "$BUILDPLACE/tmp/buildd"
echo " -> copying local configuration"