diff options
author | rillig <rillig@pkgsrc.org> | 2019-12-08 22:03:37 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2019-12-08 22:03:37 +0000 |
commit | 2411eff2d1c769d9506a59a806aabc4247a22609 (patch) | |
tree | fcd9b8354fed69c94bd85987cec26b940bb8e87b /pkgtools/pkglint/files/shell.go | |
parent | a4478eb271afee37db5026d147e23429eb33f636 (diff) | |
download | pkgsrc-2411eff2d1c769d9506a59a806aabc4247a22609.tar.gz |
pkgtools/pkglint: update pkglint to 19.3.15
Changes since 19.3.14:
Invalid lines in PLIST files are now reported as errors instead of
warnings. If pkglint doesn't know about it, it must be an error.
In PLIST files, all paths are validated to be canonical. That is, no
dotdot components, no absolute paths, no extra slashes, no intermediate
dot components.
Fewer notes for unexpanded variable expressions in DESCR files. Before,
the text $@ was reported as possible Makefile variable even though it
was just a Perl expression.
README files are allowed again in pkgsrc package directories. There was
no convincing argument why these should be forbidden.
A few diagnostics have been changed from NOTE to WARNING or from WARNING
to ERROR, to match their wording.
When pkglint suggests to replace :M with ==, the wording is now "can be
made" instead of "should".
Diffstat (limited to 'pkgtools/pkglint/files/shell.go')
-rw-r--r-- | pkgtools/pkglint/files/shell.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/pkglint/files/shell.go b/pkgtools/pkglint/files/shell.go index ae1eed4ef34..c0c0338029d 100644 --- a/pkgtools/pkglint/files/shell.go +++ b/pkgtools/pkglint/files/shell.go @@ -128,7 +128,7 @@ func (scc *SimpleCommandChecker) handleCommandVariable() bool { // When the package author has explicitly defined a command // variable, assume it to be valid. - if scc.MkLines.vars.IsDefinedSimilar(varname) { + if scc.MkLines.allVars.IsDefinedSimilar(varname) { return true } @@ -531,7 +531,7 @@ func (ck *ShellLineChecker) checkPipeExitcode(pipeline *MkShPipeline) { var shellCommandsType = NewVartype(BtShellCommands, NoVartypeOptions, NewACLEntry("*", aclpAllRuntime)) -// FIXME: Why is this called shell_Word_Vuc and not shell_Commands_Vuc? +// XXX: Why is this called shell_Word_Vuc and not shell_Commands_Vuc? var shellWordVuc = &VarUseContext{shellCommandsType, VucUnknownTime, VucQuotPlain, false} func NewShellLineChecker(mklines *MkLines, mkline *MkLine) *ShellLineChecker { @@ -657,7 +657,7 @@ func (ck *ShellLineChecker) CheckShellCommand(shellcmd string, pSetE *bool, time line := ck.mkline.Line program, err := parseShellProgram(line, shellcmd) - // FIXME: This code is duplicated in checkWordQuoting. + // XXX: This code is duplicated in checkWordQuoting. if err != nil && contains(shellcmd, "$$(") { // Hack until the shell parser can handle subshells. line.Warnf("Invoking subshells via $(...) is not portable enough.") return |