pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/lintpkgsrc pkgtools/lintpkgsrc: update to 4.96



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8bf548bb2016
branches:  trunk
changeset: 443604:8bf548bb2016
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Dec 17 16:17:44 2020 +0000

description:
pkgtools/lintpkgsrc: update to 4.96

Changes since 4.95:

Do not complain about "Bogus: ${_SVN_PKGREVISION:...}" that are
generated by wip/mk/*-package.mk.  Using PKGREVISION to track the
current date of the package is the wrong approach; PKGVERSION_NOREV
should be used instead.  Anyway, this is nothing the average pkgsrc user
should be worried about, so shut up the warning for now.

https://mail-index.netbsd.org/pkgsrc-users/2020/12/16/msg032884.html

diffstat:

 pkgtools/lintpkgsrc/Makefile            |  5 ++---
 pkgtools/lintpkgsrc/files/lintpkgsrc.pl |  7 +++++--
 2 files changed, 7 insertions(+), 5 deletions(-)

diffs (36 lines):

diff -r 4a22f649cc63 -r 8bf548bb2016 pkgtools/lintpkgsrc/Makefile
--- a/pkgtools/lintpkgsrc/Makefile      Thu Dec 17 16:08:44 2020 +0000
+++ b/pkgtools/lintpkgsrc/Makefile      Thu Dec 17 16:17:44 2020 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.34 2020/08/31 18:10:58 wiz Exp $
+# $NetBSD: Makefile,v 1.35 2020/12/17 16:17:44 rillig Exp $
 
-PKGNAME=       lintpkgsrc-4.95
-PKGREVISION=   1
+PKGNAME=       lintpkgsrc-4.96
 CATEGORIES=    pkgtools
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
diff -r 4a22f649cc63 -r 8bf548bb2016 pkgtools/lintpkgsrc/files/lintpkgsrc.pl
--- a/pkgtools/lintpkgsrc/files/lintpkgsrc.pl   Thu Dec 17 16:08:44 2020 +0000
+++ b/pkgtools/lintpkgsrc/files/lintpkgsrc.pl   Thu Dec 17 16:17:44 2020 +0000
@@ -1,6 +1,6 @@
 #!@PERL5@
 
-# $NetBSD: lintpkgsrc.pl,v 1.19 2020/12/17 16:08:44 rillig Exp $
+# $NetBSD: lintpkgsrc.pl,v 1.20 2020/12/17 16:17:45 rillig Exp $
 
 # Written by David Brownlee <abs%netbsd.org@localhost>.
 #
@@ -996,7 +996,10 @@
         if ( defined $vars->{PKGREVISION}
             and not $vars->{PKGREVISION} =~ /^\s*$/ )
         {
-            if ( $vars->{PKGREVISION} =~ /\D/ ) {
+            if ( $vars->{PKGREVISION} =~ /^\$\{(_(CVS|GIT|HG|SVN)_PKGVERSION):.*\}$/ ) {
+                # See wip/mk/*-package.mk.
+            }
+            elsif ( $vars->{PKGREVISION} =~ /\D/ ) {
                 print
                   "\nBogus: PKGREVISION $vars->{PKGREVISION} (from $file)\n";
 



Home | Main Index | Thread Index | Old Index