[Reproducible-commits] [debbindiff] 06/08: Don't crash when two .changes don't contain the same files
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 b0949d22200c120bd81d5570df59877cabfd2c85
Author: Jérémy Bobbio <lunar at debian.org>
Date: Fri Mar 20 12:17:19 2015 +0100
Don't crash when two .changes don't contain the same files
Closes: #779391
---
debbindiff/comparators/changes.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debbindiff/comparators/changes.py b/debbindiff/comparators/changes.py
index 40cfdbf..cd87e4e 100644
--- a/debbindiff/comparators/changes.py
+++ b/debbindiff/comparators/changes.py
@@ -71,7 +71,7 @@ def compare_changes_files(path1, path2, source=None):
files1 = dict([(d['name'], d) for d in files1])
files2 = dict([(d['name'], d) for d in files2])
- for filename in sorted(set(files1.keys()).union(files2.keys())):
+ for filename in sorted(set(files1.keys()).intersection(files2.keys())):
d1 = files1[filename]
d2 = files2[filename]
if d1['md5sum'] != d2['md5sum']:
--
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