Mon May 18 19:11:16 2020 UTC ()
pkgtools/pkglint: update to 20.1.7

Changes since 20.1.6:

Versioned Python dependencies may end with :test or :tool, as the code in
lang/python/versioned_dependencies.mk says.


(rillig)
diff -r1.645 -r1.646 pkgsrc/pkgtools/pkglint/Makefile
diff -r1.86 -r1.87 pkgsrc/pkgtools/pkglint/files/vartypecheck.go

cvs diff -r1.645 -r1.646 pkgsrc/pkgtools/pkglint/Makefile (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkglint/Makefile 2020/05/17 07:07:18 1.645
+++ pkgsrc/pkgtools/pkglint/Makefile 2020/05/18 19:11:16 1.646
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1# $NetBSD: Makefile,v 1.645 2020/05/17 07:07:18 rillig Exp $ 1# $NetBSD: Makefile,v 1.646 2020/05/18 19:11:16 rillig Exp $
2 2
3PKGNAME= pkglint-20.1.6 3PKGNAME= pkglint-20.1.7
4CATEGORIES= pkgtools 4CATEGORIES= pkgtools
5DISTNAME= tools 5DISTNAME= tools
6MASTER_SITES= ${MASTER_SITE_GITHUB:=golang/} 6MASTER_SITES= ${MASTER_SITE_GITHUB:=golang/}
7GITHUB_PROJECT= tools 7GITHUB_PROJECT= tools
8GITHUB_TAG= 92d8274bd7b8a4c65f24bafe401a029e58392704 8GITHUB_TAG= 92d8274bd7b8a4c65f24bafe401a029e58392704
9 9
10MAINTAINER= rillig@NetBSD.org 10MAINTAINER= rillig@NetBSD.org
11HOMEPAGE= https://github.com/rillig/pkglint 11HOMEPAGE= https://github.com/rillig/pkglint
12COMMENT= Verifier for NetBSD packages 12COMMENT= Verifier for NetBSD packages
13LICENSE= 2-clause-bsd 13LICENSE= 2-clause-bsd
14CONFLICTS+= pkglint4-[0-9]* 14CONFLICTS+= pkglint4-[0-9]*
15 15
16USE_TOOLS+= pax 16USE_TOOLS+= pax

cvs diff -r1.86 -r1.87 pkgsrc/pkgtools/pkglint/files/Attic/vartypecheck.go (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkglint/files/Attic/vartypecheck.go 2020/05/08 19:50:04 1.86
+++ pkgsrc/pkgtools/pkglint/files/Attic/vartypecheck.go 2020/05/18 19:11:16 1.87
@@ -1133,33 +1133,36 @@ func (cv *VartypeCheck) PrefixPathname() @@ -1133,33 +1133,36 @@ func (cv *VartypeCheck) PrefixPathname()
1133 1133
1134 if m, manSubdir := match1(cv.Value, `^man/(.+)`); m { 1134 if m, manSubdir := match1(cv.Value, `^man/(.+)`); m {
1135 from := "${PKGMANDIR}/" + manSubdir 1135 from := "${PKGMANDIR}/" + manSubdir
1136 fix := cv.Autofix() 1136 fix := cv.Autofix()
1137 fix.Warnf("Please use %q instead of %q.", from, cv.Value) 1137 fix.Warnf("Please use %q instead of %q.", from, cv.Value)
1138 fix.Replace(cv.Value, from) 1138 fix.Replace(cv.Value, from)
1139 fix.Apply() 1139 fix.Apply()
1140 } 1140 }
1141} 1141}
1142 1142
1143func (cv *VartypeCheck) PythonDependency() { 1143func (cv *VartypeCheck) PythonDependency() {
1144 if cv.Value != cv.ValueNoVar { 1144 if cv.Value != cv.ValueNoVar {
1145 cv.Warnf("Python dependencies should not contain variables.") 1145 cv.Warnf("Python dependencies should not contain variables.")
1146 } else if !matches(cv.ValueNoVar, `^[+\-.0-9A-Z_a-z]+(?:|:link|:build)$`) { 1146 } else if !matches(cv.ValueNoVar, `^[+\-.0-9A-Z_a-z]+(?:|:link|:build|:test|:tool)$`) {
1147 cv.Warnf("Invalid Python dependency %q.", cv.Value) 1147 cv.Warnf("Invalid Python dependency %q.", cv.Value)
1148 cv.Explain( 1148 cv.Explain(
1149 "Python dependencies must be an identifier for a package, as", 1149 "Python dependencies must be an identifier for a package, as",
1150 "specified in lang/python/versioned_dependencies.mk.", 1150 "specified in lang/python/versioned_dependencies.mk.",
1151 "This identifier may be followed by :build for a build-time only", 1151 "This identifier may be followed by:",
1152 "dependency, or by :link for a run-time only dependency.") 1152 "\t:tool for a tool dependency,",
 1153 "\t:build for a build-time only dependency,",
 1154 "\t:test for a test-only dependency,",
 1155 "\t:link for a run-time dependency.")
1153 } 1156 }
1154} 1157}
1155 1158
1156func (cv *VartypeCheck) RPkgName() { 1159func (cv *VartypeCheck) RPkgName() {
1157 if cv.Op == opUseMatch { 1160 if cv.Op == opUseMatch {
1158 return 1161 return
1159 } 1162 }
1160 1163
1161 if cv.Value != cv.ValueNoVar { 1164 if cv.Value != cv.ValueNoVar {
1162 cv.Warnf("The R package name should not contain variables.") 1165 cv.Warnf("The R package name should not contain variables.")
1163 return 1166 return
1164 } 1167 }
1165 1168