]> err.no Git - dak/commitdiff
dont escape html chars if not needed
authorJoerg Jaspert <joerg@debian.org>
Sun, 6 Jan 2008 11:46:38 +0000 (12:46 +0100)
committerJoerg Jaspert <joerg@debian.org>
Sun, 6 Jan 2008 11:46:38 +0000 (12:46 +0100)
ChangeLog
dak/examine_package.py

index 1f818980f8655add0dd70a0df202f9dbe7019095..59c4b4191ca19d4ea4c0cbcefbf70eaabb96b30e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 
        * dak/examine_package.py (do_lintian): lintian now supports html
        coloring, so use it.
+       (do_command): Dont escape html chars if param escaped = 1
 
 2007-12-31  Anthony Towns  <ajt@debian.org>
 
index 72e098d562b91a03b7dcf0ac5b39732bc7b24b89..52eeffc7094e5eaa3dd94c403f8b8e3a19694e6d 100755 (executable)
@@ -334,15 +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):
     if use_html:
-        do_command("lintian --show-overrides --color html", 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)