Package daklib :: Module lintian
[hide private]
[frames] | no frames]

Module lintian

source code

Utility functions for lintian checks in dak


Contact: Debian FTPMaster <ftpmaster@debian.org>

Copyright:

License: GNU General Public License version 2 or later

Functions [hide private]
 
parse_lintian_output(output)
Parses Lintian output and returns a generator with the data.
source code
 
generate_reject_messages(parsed_tags, tag_definitions, log=<__builtin__.function object>)
Generates package reject messages by comparing parsed lintian output with tag definitions.
source code
Variables [hide private]
  __package__ = 'daklib'

Imports: re_parse_lintian


Function Details [hide private]

parse_lintian_output(output)

source code 

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 (string) - The output from lintian

generate_reject_messages(parsed_tags, tag_definitions, log=<__builtin__.function object>)

source code 

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