summaryrefslogtreecommitdiff
path: root/pkgtools/pkglint/files/pkgsrc.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkgtools/pkglint/files/pkgsrc.go')
-rw-r--r--pkgtools/pkglint/files/pkgsrc.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgtools/pkglint/files/pkgsrc.go b/pkgtools/pkglint/files/pkgsrc.go
index 76a8ab3fc9b..55fbdde60f9 100644
--- a/pkgtools/pkglint/files/pkgsrc.go
+++ b/pkgtools/pkglint/files/pkgsrc.go
@@ -186,7 +186,7 @@ func (src *Pkgsrc) loadDocChangesFromFile(filename CurrPath) []*Change {
// This check has been added in 2018.
// For years earlier than 2018 pkglint doesn't care because it's not a big issue anyway.
year := ""
- if _, yyyy := match1(filename.Base(), `-(\d\d\d\d)$`); yyyy >= "2018" {
+ if _, yyyy := match1(filename.Base().String(), `-(\d\d\d\d)$`); yyyy >= "2018" {
year = yyyy
}
@@ -532,7 +532,7 @@ func (src *Pkgsrc) loadToolsPlatform() {
var systems []string
scopes := make(map[string]*RedundantScope)
for _, mkFile := range src.File("mk/tools").ReadPaths() {
- m, opsys := match1(mkFile.Base(), `^tools\.(.+)\.mk$`)
+ m, opsys := match1(mkFile.Base().String(), `^tools\.(.+)\.mk$`)
if !m {
continue
}