pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/flavor/pkg Exit if reduce-depends produces an error.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/aa7071ca6597
branches:  trunk
changeset: 535558:aa7071ca6597
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Nov 22 09:59:59 2007 +0000

description:
Exit if reduce-depends produces an error.

diffstat:

 mk/flavor/pkg/list-dependencies |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 61c72c645180 -r aa7071ca6597 mk/flavor/pkg/list-dependencies
--- a/mk/flavor/pkg/list-dependencies   Thu Nov 22 09:57:00 2007 +0000
+++ b/mk/flavor/pkg/list-dependencies   Thu Nov 22 09:59:59 2007 +0000
@@ -37,12 +37,14 @@
 ######################################################################
 
 : ${ECHO:=echo}
-: ${CAT:=cat}
 
 set -e
 
+trap "exit 1" INT
+
 reduce_depends() {
-       ${AWK} -f ${PKGSRCDIR}/mk/flavor/pkg/reduce-depends.awk "$1"
+       ${AWK} -f ${PKGSRCDIR}/mk/flavor/pkg/reduce-depends.awk "$1" \
+       || kill -INT $$
 }
 
 print_entries() {



Home | Main Index | Thread Index | Old Index