diff options
author | grant <grant> | 2004-03-18 14:27:20 +0000 |
---|---|---|
committer | grant <grant> | 2004-03-18 14:27:20 +0000 |
commit | 31d70fd573cff0a9c782150b28ae8a3ed3812233 (patch) | |
tree | 0a4ba2cc02394e73463e00a84c820bf9c77e2959 /mk | |
parent | 426806e4a3f208b81ebba89937d30d48509c6040 (diff) | |
download | pkgsrc-31d70fd573cff0a9c782150b28ae8a3ed3812233.tar.gz |
don't assume there will always be broken packages. noted by wiz.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bulk/post-build | 7 |
1 files changed, 5 insertions, 2 deletions
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 = <BF>; close (BF); |