From 31d70fd573cff0a9c782150b28ae8a3ed3812233 Mon Sep 17 00:00:00 2001 From: grant Date: Thu, 18 Mar 2004 14:27:20 +0000 Subject: don't assume there will always be broken packages. noted by wiz. --- mk/bulk/post-build | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mk/bulk') diff --git a/mk/bulk/post-build b/mk/bulk/post-build index edcb9b19313..cab7fa85fc5 100644 --- a/mk/bulk/post-build +++ b/mk/bulk/post-build @@ -1,5 +1,5 @@ #!/usr/pkg/bin/perl -# $NetBSD: post-build,v 1.38 2004/03/13 11:55:40 wiz Exp $ +# $NetBSD: post-build,v 1.39 2004/03/18 14:27:20 grant Exp $ # # Collect stuff after a pkg bulk build # @@ -469,7 +469,10 @@ EOHTML # get and sort the broken packages sub getBroken { - open (BF, $BROKENFILE) or die "can't open $BROKENFILE: $!"; + if (!open (BF, $BROKENFILE)) { + return undef; + } + my @in = ; close (BF); -- cgit v1.2.3