pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pbulk pbulk-0.62: cleanup if either the initi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/858858290e5b
branches:  trunk
changeset: 356070:858858290e5b
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sun Dec 18 09:36:38 2016 +0000

description:
pbulk-0.62: cleanup if either the initial pkg_add round or the package
upload failed.

diffstat:

 pkgtools/pbulk/Makefile                      |  4 ++--
 pkgtools/pbulk/files/pbulk/scripts/pkg-build |  6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (40 lines):

diff -r 24d80e19bc55 -r 858858290e5b pkgtools/pbulk/Makefile
--- a/pkgtools/pbulk/Makefile   Sun Dec 18 08:29:48 2016 +0000
+++ b/pkgtools/pbulk/Makefile   Sun Dec 18 09:36:38 2016 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.77 2016/05/09 00:08:21 joerg Exp $
+# $NetBSD: Makefile,v 1.78 2016/12/18 09:36:38 joerg Exp $
 
-PKGNAME=       pbulk-0.61
+PKGNAME=       pbulk-0.62
 COMMENT=       Modular bulk build framework
 
 .include "../../pkgtools/pbulk/Makefile.common"
diff -r 24d80e19bc55 -r 858858290e5b pkgtools/pbulk/files/pbulk/scripts/pkg-build
--- a/pkgtools/pbulk/files/pbulk/scripts/pkg-build      Sun Dec 18 08:29:48 2016 +0000
+++ b/pkgtools/pbulk/files/pbulk/scripts/pkg-build      Sun Dec 18 09:36:38 2016 +0000
@@ -1,5 +1,5 @@
 #!@SH@
-# $NetBSD: pkg-build,v 1.30 2016/05/09 00:08:21 joerg Exp $
+# $NetBSD: pkg-build,v 1.31 2016/12/18 09:36:38 joerg Exp $
 #
 # Copyright (c) 2007, 2008 Joerg Sonnenberger <joerg%NetBSD.org@localhost>.
 # All rights reserved.
@@ -179,7 +179,7 @@
 ${make} clean > ${bulklog}/${pkgname}/pre-clean.log 2>&1
 # Install all dependencies the package said it would need
 if [ ! -z "$dependencies" ]; then
-       ${pkg_add_cmd} $dependencies > ${bulklog}/${pkgname}/depends.log 2>&1
+       ${pkg_add_cmd} $dependencies > ${bulklog}/${pkgname}/depends.log 2>&1 || cleanup
 fi
 # Build package, create a separate log file for each major phase
 run_make ${run_checksum} checksum  > ${bulklog}/${pkgname}/checksum.log 2>&1 || cleanup
@@ -214,7 +214,7 @@
 # This is quite expensive and mostly redundant, so it is disabled by default.
 #${pkg_delete} -r \* > /dev/null 2>&1 || cleanup
 
-${sync_package} ${pkgfile} ${pkgname} "${categories}"
+${sync_package} ${pkgfile} ${pkgname} "${categories}" || cleanup
 
 # Clean build area
 ${make} clean > ${bulklog}/${pkgname}/clean.log 2>&1 || true



Home | Main Index | Thread Index | Old Index