diff options
author | tv <tv@pkgsrc.org> | 2005-01-15 01:53:00 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 2005-01-15 01:53:00 +0000 |
commit | d59d4df63a8ae1eb17fcc6f2d9c9d7efa798604f (patch) | |
tree | 38833a28609d04b5ec65d5a2e8937bb2531ce04a /mk/bulk | |
parent | 5c2532320ecbdc275669cd6d08de059b1fa73309 (diff) | |
download | pkgsrc-d59d4df63a8ae1eb17fcc6f2d9c9d7efa798604f.tar.gz |
Work around an undef-in-string warning caused by unexpanded $NetBSD$
id tags. Noticed by kristerw.
Diffstat (limited to 'mk/bulk')
-rw-r--r-- | mk/bulk/post-build | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mk/bulk/post-build b/mk/bulk/post-build index 570edd2cd60..e1738ec3dca 100644 --- a/mk/bulk/post-build +++ b/mk/bulk/post-build @@ -1,5 +1,5 @@ #!/usr/pkg/bin/perl -# $NetBSD: post-build,v 1.50 2005/01/14 13:08:28 jmmv Exp $ +# $NetBSD: post-build,v 1.51 2005/01/15 01:53:00 tv Exp $ # # Collect stuff after a pkg bulk build # @@ -217,9 +217,9 @@ sub pkgResult ($$) { my $file = ""; my $ver = ""; foreach my $ident (@idents) { - $ident =~ /\$[N]etBSD: ([^ ]*),v ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) Exp \$/; - if ("$3 $4" gt $datetime) { - $datetime = "$3 $4"; + $ident =~ /\$[N]etBSD: ([^ ]*),v [^ ]* ([^ ]*) ([^ ]*) [^ ]* Exp \$/; + if (defined($2) && defined($3) && ("$2 $3" gt $datetime)) { + $datetime = "$2 $3"; $file = $1; $ver = $1; } |