[Reproducible-commits] [debbindiff] 01/03: Disable 'Device' section diff in stat output
Jérémy Bobbio
lunar at moszumanska.debian.org
Thu Apr 30 17:26:51 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 954297ac66735f9fa8788f22afd63b84d9df35f7
Author: Yasushi SHOJI <yashi at atmark-techno.com>
Date: Thu Apr 30 16:33:17 2015 +0900
Disable 'Device' section diff in stat output
While using debbindiff with file system images mounted with different
loop devices, stat shows that those loop devices are indeed
different. This clutters the report if you are comparing many files and
unable to see important points.
Usually those devices does not matter when comparing files for
reproducible build, so disable the device diff.
---
debbindiff/comparators/directory.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/debbindiff/comparators/directory.py b/debbindiff/comparators/directory.py
index d296b22..aeece5a 100644
--- a/debbindiff/comparators/directory.py
+++ b/debbindiff/comparators/directory.py
@@ -36,10 +36,12 @@ class Stat(Command):
return ['stat', self.path]
FILE_RE = re.compile(r'^\s*File:.*$')
+ DEVICE_RE = re.compile(r'Device: [0-9a-f]+h/[0-9]+d')
INODE_RE = re.compile(r'Inode: [0-9]+')
def filter(self, line):
line = Stat.FILE_RE.sub('', line)
+ line = Stat.DEVICE_RE.sub('', line)
line = Stat.INODE_RE.sub('', line)
return line
--
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