[diffoscope] 03/12: Ignoring .buildinfo file referenced in .changes file while comparing two .changes files
Maria Glukhova
siamezzze-guest at moszumanska.debian.org
Wed Mar 8 15:59:09 CET 2017
This is an automated email from the git hooks/post-receive script.
siamezzze-guest pushed a commit to branch siamezzze/hide-profiles-experiment
in repository diffoscope.
commit cb72daf0708d63c218969b6d04fd313df4a2dcac
Author: Satyam Zode <satyamzode at gmail.com>
Date: Thu Jun 23 15:13:37 2016 +0530
Ignoring .buildinfo file referenced in .changes file while comparing two .changes files
---
diffoscope/comparators/debian.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/diffoscope/comparators/debian.py b/diffoscope/comparators/debian.py
index dc182db..1d78866 100644
--- a/diffoscope/comparators/debian.py
+++ b/diffoscope/comparators/debian.py
@@ -117,6 +117,12 @@ class DebControlFile(File):
@property
def deb822(self):
+ try:
+ for i in self._deb822.get('Files'):
+ if i['name'].endswith('.buildinfo'):
+ self._deb822.get('Files').remove(i)
+ except TypeError:
+ return self._deb822
return self._deb822
def compare_details(self, other, source=None):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the diffoscope
mailing list