diff options
author | grant <grant@pkgsrc.org> | 2004-03-18 14:27:20 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2004-03-18 14:27:20 +0000 |
commit | 511c9e8b95b1094bb25951bf529f91be645b4861 (patch) | |
tree | 0a4ba2cc02394e73463e00a84c820bf9c77e2959 /mk/bulk/post-build | |
parent | ccee928893f31b1a460a08d6bcddbcd55e1cc236 (diff) | |
download | pkgsrc-511c9e8b95b1094bb25951bf529f91be645b4861.tar.gz |
don't assume there will always be broken packages. noted by wiz.
Diffstat (limited to 'mk/bulk/post-build')
-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); |