Bug#368206: lintian: Should not warn for writing style in untranslatable templates
Christian Perrier <bubulle@debian.org> writes:
> Package: lintian
> Version: 1.23.21
> Severity: minor
> CC'ing Thomas as I know he's the one who sent the patch.
> Lintian currently warns for writing style in some templates it
> shouldn't:
> W: passwd: malformed-prompt-in-templates passwd/root-password-crypted
> The offending template is:
> # This template is for D-I purposes and should allow
> # preseeding the root password with a crypted password rather than cleartext
> Template: passwd/root-password-crypted
> Type: password
> Description: For internal use only
> So, I hereby suggest that lintian does NOT check the wording of strings
> that are contained in an untranslatable template, because this is most
> of the time meant for not being displayed.
Yeah, I was struggling with the best way to skip prompts that were only
for internal use. You can make the warning go away by just putting a
colon at the end of the line, but I agree that ideally you shouldn't have
to. Basing the check on whether the template is marked for translation
sounds like a good idea.
--
Russ Allbery (rra@debian.org) <http://www.eyrie.org/~eagle/>
Reply to: