summaryrefslogtreecommitdiff
path: root/pkgtools/pkglint/files/pkglint.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkgtools/pkglint/files/pkglint.go')
-rw-r--r--pkgtools/pkglint/files/pkglint.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgtools/pkglint/files/pkglint.go b/pkgtools/pkglint/files/pkglint.go
index 8c024c1ebb2..11dcf5be567 100644
--- a/pkgtools/pkglint/files/pkglint.go
+++ b/pkgtools/pkglint/files/pkglint.go
@@ -281,7 +281,7 @@ func checklineTrailingWhitespace(line *Line) {
func checklineRcsid(line *Line, prefixRe, suggestedPrefix string) bool {
defer tracecall("checklineRcsid", prefixRe, suggestedPrefix)()
- if !matches(line.text, `^`+prefixRe+`\$NetBSD(?::[^\$]+)?\$$`) {
+ if !matches(line.text, `^`+prefixRe+`[$]NetBSD(?::[^\$]+)?\$$`) {
line.errorf("Expected %q.", suggestedPrefix+"$"+"NetBSD$")
line.explain(
"Several files in pkgsrc must contain the CVS Id, so that their current",