diff options
author | wiz <wiz> | 2001-12-03 17:52:24 +0000 |
---|---|---|
committer | wiz <wiz> | 2001-12-03 17:52:24 +0000 |
commit | c16e6473922af9d203d78df5ef7f3bd3d39723cb (patch) | |
tree | 4aac97e3d3c214edc282735f3c947ec3b2350822 /pkgtools/pkglint/files | |
parent | 5bdd2ab7e2f6205b831cb17cc8f71fea17e42b38 (diff) | |
download | pkgsrc-c16e6473922af9d203d78df5ef7f3bd3d39723cb.tar.gz |
Make lintpkgsrc support PKGREVISION, in response to pkg/14767.
Bump to 3.14 (next version 3.141? ;)
Diffstat (limited to 'pkgtools/pkglint/files')
-rwxr-xr-x | pkgtools/pkglint/files/lintpkgsrc.pl | 7 |
1 files changed, 6 insertions, 1 deletions
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.*)/) |