summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2001-12-03 17:52:24 +0000
committerwiz <wiz@pkgsrc.org>2001-12-03 17:52:24 +0000
commit6e489f3d111cda044c15c0a265da21e00d7ad113 (patch)
tree4aac97e3d3c214edc282735f3c947ec3b2350822 /pkgtools
parent0ea2848a644d1c05ae17abc511c24a6bbd092c21 (diff)
downloadpkgsrc-6e489f3d111cda044c15c0a265da21e00d7ad113.tar.gz
Make lintpkgsrc support PKGREVISION, in response to pkg/14767.
Bump to 3.14 (next version 3.141? ;)
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/Makefile4
-rwxr-xr-xpkgtools/pkglint/files/lintpkgsrc.pl7
2 files changed, 8 insertions, 3 deletions
diff --git a/pkgtools/pkglint/Makefile b/pkgtools/pkglint/Makefile
index 4b118f29d2e..f0eb53f2a53 100644
--- a/pkgtools/pkglint/Makefile
+++ b/pkgtools/pkglint/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.116 2001/11/29 01:56:37 hubertf Exp $
+# $NetBSD: Makefile,v 1.117 2001/12/03 17:52:24 wiz Exp $
#
-DISTNAME= pkglint-3.13
+DISTNAME= pkglint-3.14
CATEGORIES= pkgtools devel
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/pkgtools/pkglint/files/lintpkgsrc.pl b/pkgtools/pkglint/files/lintpkgsrc.pl
index 5c7e66aaa09..9ae6ae11f72 100755
--- a/pkgtools/pkglint/files/lintpkgsrc.pl
+++ b/pkgtools/pkglint/files/lintpkgsrc.pl
@@ -1,6 +1,6 @@
#!@PREFIX@/bin/perl
-# $NetBSD: lintpkgsrc.pl,v 1.56 2001/11/01 23:24:44 jmc Exp $
+# $NetBSD: lintpkgsrc.pl,v 1.57 2001/12/03 17:52:25 wiz Exp $
# Written by David Brownlee <abs@netbsd.org>.
#
@@ -639,6 +639,11 @@ sub parse_makefile_pkgsrc
{ $pkgname = $vars->{'DISTNAME'}; }
if (defined $pkgname)
{
+ if (defined $vars->{'PKGREVISION'})
+ {
+ $pkgname .= "nb";
+ $pkgname .= $vars->{'PKGREVISION'};
+ }
if ( $pkgname =~ /\$/ )
{ print "\rBogus: $pkgname (from $file)\n"; }
elsif ($pkgname =~ /(.*)-(\d.*)/)