[diffoscope] 01/01: Ignoring .buildinfo file referenced in .changes file while comparing two .changes files

Satyam Zode satyamz-guest at moszumanska.debian.org
Thu Jun 23 17:22:26 CEST 2016


This is an automated email from the git hooks/post-receive script.

satyamz-guest pushed a commit to branch satyam/hide-profile-experiment
in repository diffoscope.

commit 20157d743efce0d8047c78a2ae968866e4461c96
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 9c12f3d..40dfe7a 100644
--- a/diffoscope/comparators/debian.py
+++ b/diffoscope/comparators/debian.py
@@ -104,6 +104,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