X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fexamine_package.py;h=52eeffc7094e5eaa3dd94c403f8b8e3a19694e6d;hb=0c75da21b76820683551acb44ddc5b573f0d1873;hp=598e45770546183463801906e7ce56a3da7e78f6;hpb=6d6100fcee8e50bef063d8b8cd395773d83077b4;p=dak.git diff --git a/dak/examine_package.py b/dak/examine_package.py index 598e4577..52eeffc7 100755 --- a/dak/examine_package.py +++ b/dak/examine_package.py @@ -334,16 +334,18 @@ def output_deb_info(filename): to_print += output + '\n' print_escaped_text(to_print) -def do_command (command, filename): +def do_command (command, filename, escaped=0): o = os.popen("%s %s" % (command, filename)) - print_formatted_text(o.read()) + if escaped: + print_escaped_text(o.read()) + else: + print_formatted_text(o.read()) def do_lintian (filename): - # lintian currently does not have html coloring, so dont use color for lintian (yet) if use_html: - do_command("lintian --show-overrides", filename) + do_command("lintian --show-overrides --color html", filename, 1) else: - do_command("lintian --show-overrides --color always", filename) + do_command("lintian --show-overrides --color always", filename, 1) def print_copyright (deb_filename): package = re_package.sub(r'\1', deb_filename)