X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fexamine_package.py;h=217186c3280888230540754dad679e6ffb542de3;hb=bec35cdf1e8d4b78f0cd539660b6a469100b12d2;hp=fa1e4223c7b2aaa1e6228011a25fd4dbcd249f90;hpb=f6d4492ab23cb218e6959e64e48cf8e119e1bebe;p=dak.git diff --git a/dak/examine_package.py b/dak/examine_package.py index fa1e4223..217186c3 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)