提交 0c75da21 编写于 作者: J Joerg Jaspert

dont escape html chars if not needed

上级 76cc6b0f
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
* dak/examine_package.py (do_lintian): lintian now supports html * dak/examine_package.py (do_lintian): lintian now supports html
coloring, so use it. coloring, so use it.
(do_command): Dont escape html chars if param escaped = 1
2007-12-31 Anthony Towns <ajt@debian.org> 2007-12-31 Anthony Towns <ajt@debian.org>
......
...@@ -334,15 +334,18 @@ def output_deb_info(filename): ...@@ -334,15 +334,18 @@ def output_deb_info(filename):
to_print += output + '\n' to_print += output + '\n'
print_escaped_text(to_print) print_escaped_text(to_print)
def do_command (command, filename): def do_command (command, filename, escaped=0):
o = os.popen("%s %s" % (command, filename)) 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): def do_lintian (filename):
if use_html: if use_html:
do_command("lintian --show-overrides --color html", filename) do_command("lintian --show-overrides --color html", filename, 1)
else: else:
do_command("lintian --show-overrides --color always", filename) do_command("lintian --show-overrides --color always", filename, 1)
def print_copyright (deb_filename): def print_copyright (deb_filename):
package = re_package.sub(r'\1', deb_filename) package = re_package.sub(r'\1', deb_filename)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册