[Reproducible-commits] [debbindiff] 01/01: Allow both --html and --text to produce output in one run

Jérémy Bobbio lunar at moszumanska.debian.org
Thu May 7 17:33:10 UTC 2015


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch master
in repository debbindiff.

commit a7ce57e507796300eb9b28dfb50d1f4f92bbea42
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Thu May 7 19:30:51 2015 +0200

    Allow both --html and --text to produce output in one run
---
 debbindiff.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debbindiff.py b/debbindiff.py
index c94bc40..aeec644 100755
--- a/debbindiff.py
+++ b/debbindiff.py
@@ -109,7 +109,7 @@ def main():
             with make_printer(parsed_args.html_output) as print_func:
                 output_html(differences, css_url=parsed_args.css_url, print_func=print_func,
                             max_page_size=parsed_args.max_report_size)
-        else:
+        if (parsed_args.text_output and parsed_args.text_output != parsed_args.html_output) or not parsed_args.html_output:
             with make_printer(parsed_args.text_output or '-') as print_func:
                 output_text(differences, print_func=print_func)
         return 1

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/debbindiff.git



More information about the Reproducible-commits mailing list