pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/bulk Work around an undef-in-string warning caused ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5e02d4ee739d
branches:  trunk
changeset: 487484:5e02d4ee739d
user:      tv <tv%pkgsrc.org@localhost>
date:      Sat Jan 15 01:53:00 2005 +0000

description:
Work around an undef-in-string warning caused by unexpanded $NetBSD$
id tags.  Noticed by kristerw.

diffstat:

 mk/bulk/post-build |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (23 lines):

diff -r 4d73e9c1e428 -r 5e02d4ee739d mk/bulk/post-build
--- a/mk/bulk/post-build        Sat Jan 15 00:10:41 2005 +0000
+++ b/mk/bulk/post-build        Sat Jan 15 01:53:00 2005 +0000
@@ -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 @@
        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;
                }



Home | Main Index | Thread Index | Old Index