daklib.lintian

Utility functions for lintian checks in dak

@contact: Debian FTPMaster <ftpmaster@debian.org> @copyright: 2009, 2010 Joerg Jaspert <joerg@debian.org> @copyright: 2009 Chris Lamb <lamby@debian.org> @license: GNU General Public License version 2 or later

Functions

generate_reject_messages(parsed_tags, ...[, log])

Generates package reject messages by comparing parsed lintian output with tag definitions.

parse_lintian_output(output)

Parses Lintian output and returns a generator with the data.

daklib.lintian.generate_reject_messages(parsed_tags, tag_definitions, log=<function <lambda>>) Iterable[str][source]

Generates package reject messages by comparing parsed lintian output with tag definitions. Returns a generator containing the reject messages.

Parameters:
  • parsed_tags – Parsed lintian tags as returned by parse_lintian_output()

  • tag_definitions – YAML.load lintian tag definitions to reject on

Returns:

Reject message(s), if any

daklib.lintian.parse_lintian_output(output: str) Iterable[dict][source]

Parses Lintian output and returns a generator with the data.

>>> list(parse_lintian_output('W: pkgname: some-tag path/to/file'))
[('W', 'pkgname', 'some-tag', 'path/to/file')]
Parameters:

output – The output from lintian