summaryrefslogtreecommitdiff
path: root/pkgtools/pbulk
diff options
context:
space:
mode:
Diffstat (limited to 'pkgtools/pbulk')
-rwxr-xr-xpkgtools/pbulk/files/pbulk/scripts/pkg-build6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/pbulk/files/pbulk/scripts/pkg-build b/pkgtools/pbulk/files/pbulk/scripts/pkg-build
index d47d3aa8d8f..ae6363489dc 100755
--- a/pkgtools/pbulk/files/pbulk/scripts/pkg-build
+++ b/pkgtools/pbulk/files/pbulk/scripts/pkg-build
@@ -1,5 +1,5 @@
#!@SH@
-# $NetBSD: pkg-build,v 1.5 2007/09/07 15:51:53 rillig Exp $
+# $NetBSD: pkg-build,v 1.6 2007/09/21 13:34:52 rillig Exp $
#
# Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>.
# All rights reserved.
@@ -33,10 +33,10 @@
. @PBULK_CONFIG@
cleanup() {
- if [ $keep_wrkdir = yes ]; then
+ if [ "$keep_wrkdir" = yes ]; then
${make} pbulk-save-wrkdir INTO=${bulklog}/${pkgname}/wrkdir.tar.gz
fi
- if [ $keep_prefix = yes ]; then
+ if [ "$keep_prefix" = yes ] && [ -f ${bulklog}/${pkgname}/install.log ]; then
tar cfz ${bulklog}/${pkgname}/prefix.tar.gz ${prefix}
fi
${make} clean > /dev/null 2>&1 || true