dak.examine_package

Script to automate some parts of checking NEW packages

Most functions are written in a functional programming style. They return a string avoiding the side effect of directly printing the string to stdout. Those functions can be used in multithreaded parts of dak.

@contact: Debian FTP Master <ftpmaster@debian.org> @copyright: 2000, 2001, 2002, 2003, 2006 James Troup <james@nocrew.org> @copyright: 2009 Joerg Jaspert <joerg@debian.org> @license: GNU General Public License version 2 or later

Module Attributes

package_relations

Store relations of packages for later output

Functions

check_changes(changes_filename)

check_deb(suite, deb_filename[, session])

check_dsc(suite, dsc_filename[, session])

colour_output(s, colour)

create_depends_string(suite, depends_tree[, ...])

display_changes(suite, changes_filename)

do_command(command[, escaped])

do_lintian(filename)

escape_if_needed(s)

escaped_text(s[, strip])

extract_one_file_from_deb(deb_filename, match)

foldable_output(title, elementnameprefix, ...)

format_field(k, v)

formatted_text(s[, strip])

get_comma_list(depend)

get_copyright(deb_filename)

get_depends_parts(depend)

get_lintian_version()

get_or_list(depend)

get_provides(suite)

get_readme_source(dsc_filename)

headline(s[, level, bodyelement])

main()

output_deb_info(suite, filename, packagename)

output_package_relations()

Output the package relations, if there is more than one package checked in this run.

output_row(s)

read_changes_or_dsc(suite, filename[, session])

read_control(filename)

split_depends(d_str)

strip_pgp_signature(filename)

usage([exit_code])

dak.examine_package.check_changes(changes_filename)[source]
dak.examine_package.check_deb(suite, deb_filename, session=None)[source]
dak.examine_package.check_dsc(suite, dsc_filename, session=None)[source]
dak.examine_package.colour_output(s, colour)[source]
dak.examine_package.create_depends_string(suite, depends_tree, session=None)[source]
dak.examine_package.display_changes(suite, changes_filename)[source]
dak.examine_package.do_command(command, escaped=False)[source]
dak.examine_package.do_lintian(filename)[source]
dak.examine_package.escape_if_needed(s)[source]
dak.examine_package.escaped_text(s, strip=False)[source]
dak.examine_package.extract_one_file_from_deb(deb_filename, match)[source]
dak.examine_package.foldable_output(title, elementnameprefix, content, norow=False)[source]
dak.examine_package.format_field(k, v)[source]
dak.examine_package.formatted_text(s, strip=False)[source]
dak.examine_package.get_comma_list(depend)[source]
dak.examine_package.get_depends_parts(depend)[source]
dak.examine_package.get_lintian_version()[source]
dak.examine_package.get_or_list(depend)[source]
dak.examine_package.get_provides(suite)[source]
dak.examine_package.get_readme_source(dsc_filename)[source]
dak.examine_package.headline(s, level=2, bodyelement=None)[source]
dak.examine_package.main()[source]
dak.examine_package.output_deb_info(suite, filename, packagename, session=None)[source]
dak.examine_package.output_package_relations()[source]

Output the package relations, if there is more than one package checked in this run.

dak.examine_package.output_row(s)[source]
dak.examine_package.package_relations = {}

Store relations of packages for later output

dak.examine_package.read_changes_or_dsc(suite, filename, session=None)[source]
dak.examine_package.read_control(filename)[source]
dak.examine_package.split_depends(d_str)[source]
dak.examine_package.strip_pgp_signature(filename)[source]
dak.examine_package.usage(exit_code=0)[source]