Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/pkgsrc/pkgtools/pkglint/files/Attic/pkgsrc.go,v rcsdiff: /ftp/cvs/cvsroot/pkgsrc/pkgtools/pkglint/files/Attic/pkgsrc.go,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.36 retrieving revision 1.37 diff -u -p -r1.36 -r1.37 --- pkgsrc/pkgtools/pkglint/files/Attic/pkgsrc.go 2019/10/01 21:37:59 1.36 +++ pkgsrc/pkgtools/pkglint/files/Attic/pkgsrc.go 2019/10/11 23:30:02 1.37 @@ -28,7 +28,7 @@ type Pkgsrc struct { Tools *Tools - MasterSiteURLToVar map[string]string // "https://github.com/" => "MASTER_SITE_GITHUB" + MasterSiteURLToVar map[string]string // "github.com/" => "MASTER_SITE_GITHUB" MasterSiteVarToURL map[string]string // "MASTER_SITE_GITHUB" => "https://github.com/" PkgOptions map[string]string // "x11" => "Provides X11 support" @@ -921,7 +921,7 @@ func (src *Pkgsrc) registerMasterSite(va if nameToURL[varname] == "" { nameToURL[varname] = url } - urlToName[url] = varname + urlToName[replaceAll(url, `^\w+://`, "")] = varname } func (src *Pkgsrc) loadPkgOptions() {