diff options
author | rillig <rillig> | 2006-06-06 05:18:56 +0000 |
---|---|---|
committer | rillig <rillig> | 2006-06-06 05:18:56 +0000 |
commit | 838ab804beb31ffceabc5bc6aad57f3ac4b11763 (patch) | |
tree | 0399e6f4e68902037bc27fbc32bc207706d68c80 /pkgtools | |
parent | 51c3172eb2aadde196ae68480c80480886236ae2 (diff) | |
download | pkgsrc-838ab804beb31ffceabc5bc6aad57f3ac4b11763.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')
-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; } # |