summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig>2005-09-27 18:58:56 +0000
committerrillig <rillig>2005-09-27 18:58:56 +0000
commit6e93964366d3d0899a399c5e485e3c840e4ccd45 (patch)
tree20b1901895d63fb4bdf7ab9a095504940f1af70d /pkgtools
parentd8ddb7b3020b55b3031d4234d3c27d274ee00cf7 (diff)
downloadpkgsrc-6e93964366d3d0899a399c5e485e3c840e4ccd45.tar.gz
Updated pkglint to 4.21.5.
Insist that PKGREVISION should be an integer or be undefined at all.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/Makefile4
-rw-r--r--pkgtools/pkglint/files/makevars.map3
-rw-r--r--pkgtools/pkglint/files/pkglint.pl7
3 files changed, 10 insertions, 4 deletions
diff --git a/pkgtools/pkglint/Makefile b/pkgtools/pkglint/Makefile
index cf6adb67d6b..a6f51a4af2b 100644
--- a/pkgtools/pkglint/Makefile
+++ b/pkgtools/pkglint/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.253 2005/09/23 13:08:23 rillig Exp $
+# $NetBSD: Makefile,v 1.254 2005/09/27 18:58:56 rillig Exp $
#
-DISTNAME= pkglint-4.21.4
+DISTNAME= pkglint-4.21.5
CATEGORIES= pkgtools devel
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/pkgtools/pkglint/files/makevars.map b/pkgtools/pkglint/files/makevars.map
index d21759d3fe0..329fe171d8e 100644
--- a/pkgtools/pkglint/files/makevars.map
+++ b/pkgtools/pkglint/files/makevars.map
@@ -1,4 +1,4 @@
-# $NetBSD: makevars.map,v 1.12 2005/08/01 15:40:19 wiz Exp $
+# $NetBSD: makevars.map,v 1.13 2005/09/27 18:58:56 rillig Exp $
#
# This file tries to guess the type of some variables, according to their
@@ -40,6 +40,7 @@ USE_XFACE Boolean
# some variables found in package Makefiles
+PKGREVISION Integer
GNU_CONFIGURE Yes_Or_Undefined
HOMEPAGE URL
MAINTAINER Mail_Address
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 316f7e79441..ff4bf0ab9d8 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -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.287 2005/09/23 13:08:23 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.288 2005/09/27 18:58:56 rillig Exp $
#
# This version contains lots of changes necessary for NetBSD packages
# done by:
@@ -1261,6 +1261,11 @@ sub checkline_Makefile_vartype($$) {
$line->log_warning("\"$value\" is not a valid URL.");
}
+ } elsif ($type eq "Integer") {
+ if ($value !~ qr"^\d+$") {
+ $line->log_warning("\"$value\" is not a valid Integer.");
+ }
+
} else {
$line->log_error("[internal] Type $type unknown.");
}