pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint Updated pkglint to 4.37.2.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bab2e260ec8d
branches:  trunk
changeset: 502499:bab2e260ec8d
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat Nov 05 11:02:53 2005 +0000

description:
Updated pkglint to 4.37.2.

- Removed the hard-coded values for valid tool names.
  The detection is good enough.
- Make sure that the domain part NetBSD.org is written like this
  in mail addresses.

diffstat:

 pkgtools/pkglint/Makefile         |   4 ++--
 pkgtools/pkglint/files/pkglint.pl |  15 ++++++++-------
 2 files changed, 10 insertions(+), 9 deletions(-)

diffs (52 lines):

diff -r c850b61a2fd9 -r bab2e260ec8d pkgtools/pkglint/Makefile
--- a/pkgtools/pkglint/Makefile Sat Nov 05 10:30:06 2005 +0000
+++ b/pkgtools/pkglint/Makefile Sat Nov 05 11:02:53 2005 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.284 2005/11/04 22:54:59 rillig Exp $
+# $NetBSD: Makefile,v 1.285 2005/11/05 11:02:53 rillig Exp $
 #
 
-DISTNAME=      pkglint-4.37.1
+DISTNAME=      pkglint-4.37.2
 CATEGORIES=    pkgtools devel
 MASTER_SITES=  # empty
 DISTFILES=     # empty
diff -r c850b61a2fd9 -r bab2e260ec8d pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Sat Nov 05 10:30:06 2005 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Sat Nov 05 11:02:53 2005 +0000
@@ -11,7 +11,7 @@
 # Freely redistributable.  Absolutely no warranty.
 #
 # From Id: portlint.pl,v 1.64 1998/02/28 02:34:05 itojun Exp
-# $NetBSD: pkglint.pl,v 1.335 2005/11/04 22:54:59 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.336 2005/11/05 11:02:53 rillig Exp $
 #
 # This version contains lots of changes necessary for NetBSD packages
 # done by:
@@ -1461,11 +1461,6 @@
        }
        log_info(NO_FILE, NO_LINE_NUMBER, "Known tools: ".join(" ", sort(keys(%{$tools}))));
 
-       # As long as there is no reliable way to get a list of all valid
-       # tool names, this is the best I can do.
-       foreach my $tool (qw(autoconf autoconf213 automake automake14 bdftopcf bison flex pkg-config)) {
-               $tools->{$tool} = true;
-       }
        $get_tool_names_value = $tools;
        return $get_tool_names_value;
 }
@@ -1552,7 +1547,13 @@
                }
 
        } elsif ($type eq "Mail_Address") {
-               if ($value !~ qr"^[-\w\d_.]+\@[-\w\d.]+$") {
+               if ($value =~ qr"^([-\w\d_.]+)\@([-\w\d.]+)$") {
+                       my (undef, $domain) = ($1, $2);
+                       if ($domain =~ qr"^NetBSD.org"i && $domain ne "NetBSD.org") {
+                               $line->log_warning("Please write NetBSD.org instead of ${domain}.");
+                       }
+
+               } else {
                        $line->log_warning("\"${value}\" is not a valid mail address.");
                }
 



Home | Main Index | Thread Index | Old Index