[Reproducible-commits] [debbindiff] 08/08: Properly split lines when comparing .changes
Jérémy Bobbio
lunar at moszumanska.debian.org
Fri Mar 20 11:31:42 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 0360e6fedc51c105bd608d7bd585b24fc4e38e19
Author: Jérémy Bobbio <lunar at debian.org>
Date: Fri Mar 20 12:31:23 2015 +0100
Properly split lines when comparing .changes
---
debbindiff/comparators/changes.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/debbindiff/comparators/changes.py b/debbindiff/comparators/changes.py
index cd87e4e..400815c 100644
--- a/debbindiff/comparators/changes.py
+++ b/debbindiff/comparators/changes.py
@@ -45,9 +45,12 @@ def compare_changes_files(path1, path2, source=None):
differences = []
for field in DOT_CHANGES_FIELDS:
if dot_changes1[field] != dot_changes2[field]:
+ lines1 = dot_changes1[field].splitlines(1)
+ lines2 = dot_changes2[field].splitlines(1)
+ lines1[0] = "%s: %s" % (field, lines1[0])
+ lines2[0] = "%s: %s" % (field, lines2[0])
differences.append(Difference(
- ["%s: %s" % (field, dot_changes1[field])],
- ["%s: %s" % (field, dot_changes2[field])],
+ lines1, lines2,
dot_changes1.get_changes_file(),
dot_changes2.get_changes_file(),
source=source))
--
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