aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-buildpackage
diff options
context:
space:
mode:
authordancer <dancer>2006-06-10 15:09:52 +0000
committerdancer <dancer>2006-06-10 15:09:52 +0000
commit84230c04e0b5e43f3b84307e83dd87b2ee346a98 (patch)
treeb6bb8ed115a4d23d1d78a96b14e52ab345d15037 /pbuilder-buildpackage
parent1462ca03eefc6dd37065ee70545303aefa84b308 (diff)
downloadpbuilder-84230c04e0b5e43f3b84307e83dd87b2ee346a98.tar
pbuilder-84230c04e0b5e43f3b84307e83dd87b2ee346a98.tar.gz
do error checking for buildresult.
Diffstat (limited to 'pbuilder-buildpackage')
-rwxr-xr-xpbuilder-buildpackage11
1 files changed, 9 insertions, 2 deletions
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