pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files Removed the check if ${PKGBASE}...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3d426b52479c
branches:  trunk
changeset: 494047:3d426b52479c
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Wed May 18 19:08:42 2005 +0000

description:
Removed the check if ${PKGBASE} ends in a digit. This check only
produced false warnings, and it should be clear from the other package
names how PKGNAME should look like. It is even documented in the pkgsrc
guide.

diffstat:

 pkgtools/pkglint/files/pkglint.pl |  9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diffs (26 lines):

diff -r def1d43353bd -r 3d426b52479c pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Wed May 18 18:50:19 2005 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Wed May 18 19:08:42 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.152 2005/05/18 08:28:06 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.153 2005/05/18 19:08:42 rillig Exp $
 #
 # This version contains lots of changes necessary for NetBSD packages
 # done by Hubert Feyrer <hubertf%netbsd.org@localhost>,
@@ -1572,13 +1572,6 @@
        $i =~ s/\${DISTNAME[^}]*}/$distname/g;
        if ($i =~ /-([^-]+)$/) {
                my ($j, $k) = ($`, $1);
-               if ($j =~ /[0-9]$/) {
-                       log_warning(NO_FILE, NO_LINE_NUMBER, "is \"$j\" sane as package name ".
-                               "WITHOUT version number? ".
-                               "if not, avoid \"-\" in version number ".
-                               "part of ".
-                               (($pkgname eq '') ? "DISTNAME." : "PKGNAME."));
-               }
                # Be very smart. Kids, don't do this at home.
                if ($k =~ /\$(\(|\{)([A-Z_-]+)(\)|\})/) {
                        my $k1 = $2;



Home | Main Index | Thread Index | Old Index