aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rwxr-xr-xpbuilder-buildpackage11
2 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 280e819..0cb79d3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2006-06-11 Junichi Uekawa <dancer@debian.org>
+ * pbuilder-buildpackage: actually do error-checking.
+
* pbuilder-checkparams: do not error out if buildresult directory
does not exist.
diff --git a/pbuilder-buildpackage b/pbuilder-buildpackage
index 2b696a3..11b0034 100755
--- a/pbuilder-buildpackage
+++ b/pbuilder-buildpackage
@@ -57,8 +57,15 @@ trap umountproc_cleanbuildplace exit
loadhooks
if [ ! -d "${BUILDRESULT}" ]; then
- echo " -> created buildresult dir: ${BUILDRESULT}"
- mkdir -p "${BUILDRESULT}"
+ if [ -n "${BUILDRESULT}" ] ; then
+ mkdir -p "${BUILDRESULT}"
+ fi
+ if [ -d "${BUILDRESULT}" ]; then
+ echo " -> created buildresult dir: ${BUILDRESULT}"
+ else
+ echo "E: failed creating buildresult dir: ${BUILDRESULT}"
+ exit 1
+ fi
fi
if [ -z "${PBUILDER_BUILD_LOGFILE}" ]; then