diff options
author | rillig <rillig@pkgsrc.org> | 2006-06-06 05:18:56 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-06-06 05:18:56 +0000 |
commit | 7e1a20676bd4a6aa74509d3acd9bda24d1d6df46 (patch) | |
tree | 0399e6f4e68902037bc27fbc32bc207706d68c80 /pkgtools/pkglint | |
parent | 627dc60046ba2edbfcdc34b2cb837e9267888498 (diff) | |
download | pkgsrc-7e1a20676bd4a6aa74509d3acd9bda24d1d6df46.tar.gz |
When it is not clear whether the :Q operator should be used or not,
return dont_know instead of true.
Diffstat (limited to 'pkgtools/pkglint')
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index 71e0fd633b4..e2dbd6d7465 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -1,5 +1,5 @@ #! @PERL@ -# $NetBSD: pkglint.pl,v 1.602 2006/06/05 22:34:40 rillig Exp $ +# $NetBSD: pkglint.pl,v 1.603 2006/06/06 05:18:56 rillig Exp $ # # pkglint - static analyzer and checker for pkgsrc packages @@ -2668,11 +2668,8 @@ sub variable_needs_quoting($$$) { return false; } - $opt_debug and $line->log_note("Don't know whether :Q is needed for ${varname}."); - - # For all other variables, assume that quoting is necessary. - # XXX: This can be improved. - return true; + $opt_debug_quoting and $line->log_debug("Don't know whether :Q is needed for ${varname}."); + return dont_know; } # |