diff options
author | rillig <rillig@pkgsrc.org> | 2015-12-05 15:51:15 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2015-12-05 15:51:15 +0000 |
commit | 5b01355f749e4aaa41fb9c8ea3210e52d35b6606 (patch) | |
tree | 7dead000920b9fc49808647e933531d1e5bcfd27 /pkgtools/pkglint/files/mkline.go | |
parent | b7d4b717c5b5ddb98109096a363cf456b0234136 (diff) | |
download | pkgsrc-5b01355f749e4aaa41fb9c8ea3210e52d35b6606.tar.gz |
Updated pkglint to 5.2.2.
Changes since 5.2.1:
* Fixed wrong error messages about "Unknown Makefile line format"
Diffstat (limited to 'pkgtools/pkglint/files/mkline.go')
-rw-r--r-- | pkgtools/pkglint/files/mkline.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/pkgtools/pkglint/files/mkline.go b/pkgtools/pkglint/files/mkline.go index e49bb35dc37..0812fa1ab8f 100644 --- a/pkgtools/pkglint/files/mkline.go +++ b/pkgtools/pkglint/files/mkline.go @@ -640,23 +640,6 @@ func (ml *MkLine) checkText(text string) { } } -func (ml *MkLine) checkAbsolutePathname(text string) { - defer tracecall("MkLine.checkAbsolutePathname", text)() - - // In the GNU coding standards, DESTDIR is defined as a (usually - // empty) prefix that can be used to install files to a different - // location from what they have been built for. Therefore - // everything following it is considered an absolute pathname. - // - // Another context where absolute pathnames usually appear is in - // assignments like "bindir=/bin". - if m, path := match1(text, `(?:^|\$[{(]DESTDIR[)}]|[\w_]+\s*=\s*)(/(?:[^"'\s]|"[^"*]"|'[^']*')*)`); m { - if matches(path, `^/\w`) { - checkwordAbsolutePathname(ml.line, path) - } - } -} - func (ml *MkLine) checkIf() { defer tracecall("MkLine.checkIf")() |