- 28 Mar, 2015 12 commits
-
-
Jérémy Bobbio authored
-
Jérémy Bobbio authored
-
Jérémy Bobbio authored
-
Jérémy Bobbio authored
-
Jérémy Bobbio authored
-
Jérémy Bobbio authored
-
Jérémy Bobbio authored
-
Example traceback: Traceback (most recent call last): File "/usr/bin/debbindiff", line 121, in <module> sys.exit(main()) File "/usr/bin/debbindiff", line 107, in main parsed_args.file1, parsed_args.file2) File "/usr/lib/python2.7/dist-packages/debbindiff/comparators/__init__.py", line 123, in compare_files return comparator(path1, path2, source) File "/usr/lib/python2.7/dist-packages/debbindiff/comparators/utils.py", line 74, in with_fallback except RequiredToolNotFound as e: NameError: global name 'RequiredToolNotFound' is not defined -
Jérémy Bobbio authored
Closes: #781374
-
Jérémy Bobbio authored
Thanks Helmut Grohne for spotting the issue.
-
Jérémy Bobbio authored
-
-
- 27 Mar, 2015 6 commits
-
-
Jérémy Bobbio authored
-
Jérémy Bobbio authored
-
Jérémy Bobbio authored
Instead of storing the full content twice when creating Difference objects, we now directly run `diff` and store the unified diff. Large blocks in the diff are still trimmed. This results in huge memory savings and debbindiff can now happily compare changes for installation-guide. As tool_required() is not only for comparators anymore, we move it to debbindiff, together with logger. Text output becomes really straightforward as we just have to write what we've previously recorded. For the HTML output, we stop using vim and instead borrow code from diff2html.py found at <http://git.droids-corp.org/?p=diff2html.git>. Closes: #772029 Closes: #779476
-
Jérémy Bobbio authored
If different encodings are detected, compare_text_files will be given encoding=None. Let's try to decode stuff as utf-8 as a best guess. We'll fallback on binary comparison if that doesn't work out well.
-
Make print_func accept unicode objects by opening the output using the codecs module. This affects --html output. Closes: #778641
-
Example input package triggering the error: libreadline6 Example traceback being fixed: Traceback (most recent call last): File "/usr/bin/debbindiff", line 120, in <module> sys.exit(main()) File "/usr/bin/debbindiff", line 114, in main output_text(differences, print_func=print_func) File "/usr/lib/python2.7/dist-packages/debbindiff/presenters/text.py", line 71, in output_text print_details(difference, print_func) File "/usr/lib/python2.7/dist-packages/debbindiff/presenters/text.py", line 62, in print_details print_details(detail, new_print_func) File "/usr/lib/python2.7/dist-packages/debbindiff/presenters/text.py", line 62, in print_details print_details(detail, new_print_func) File "/usr/lib/python2.7/dist-packages/debbindiff/presenters/text.py", line 62, in print_details print_details(detail, new_print_func) File "/usr/lib/python2.7/dist-packages/debbindiff/presenters/text.py", line 59, in print_details print_difference(detail, print_func) File "/usr/lib/python2.7/dist-packages/debbindiff/presenters/text.py", line 36, in print_difference if not difference.lines2[-1].endswith('\n'): IndexError: list index out of range
-
- 23 Mar, 2015 4 commits
-
-
Jérémy Bobbio authored
-
Jérémy Bobbio authored
-
Jérémy Bobbio authored
-
Jérémy Bobbio authored
-
- 20 Mar, 2015 11 commits
-
-
Jérémy Bobbio authored
-
Jérémy Bobbio authored
-
Jérémy Bobbio authored
-
Jérémy Bobbio authored
-
Jérémy Bobbio authored
-
Jérémy Bobbio authored
Closes: #779391
-
Jérémy Bobbio authored
Closes: #778537
-
Jérémy Bobbio authored
-
Jérémy Bobbio authored
Closes: #779475
-
Jérémy Bobbio authored
-
Jérémy Bobbio authored
Closes: #779474
-
- 19 Mar, 2015 3 commits
-
-
Jérémy Bobbio authored
-
Jérémy Bobbio authored
-
Jérémy Bobbio authored
-
- 18 Mar, 2015 3 commits
-
-
Jérémy Bobbio authored
The `tool_required` decorator now raises an exception when the command cannot be found. This enables more flexible handling. Associated Debian package is now suggested in the comment. The list of external tools is now available through the `--list-tools` command-line option. We also use this output to generate the Recommends field.
-
Jérémy Bobbio authored
-
Jérémy Bobbio authored
-
- 06 Mar, 2015 1 commit
-
-
Reiner Herrmann authored
Move the packages of those tools to Recommends section.
-