Last active
August 15, 2016 11:42
-
-
Save satyamz/7544b95b83575321b6f3ab009d096841 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/diffoscope/comparators/debian.py b/diffoscope/comparators/debian.py | |
index 9c12f3d..2578503 100644 | |
--- a/diffoscope/comparators/debian.py | |
+++ b/diffoscope/comparators/debian.py | |
@@ -147,6 +147,14 @@ class DotChangesFile(DebControlFile): | |
file._deb822 = changes | |
return True | |
+ def compare(self, other, source=None): | |
+ differences = super().compare(other, source) | |
+ files_identical = all([x == y for x, y in zip(self.deb822.get('Files'), other.deb822.get('Files')) if not x['name'].endswith('.buildinfo')]) | |
+ if files_identical and differences and differences.details[0].source1 == 'Files': | |
+ logger.warning('Ignoring buildinfo file differences') | |
+ return None | |
+ else: | |
+ return differences |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment