[Reproducible-commits] [debbindiff] 02/03: Filter access time from stat output

Jérémy Bobbio lunar at moszumanska.debian.org
Thu Jun 25 09:52:24 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 c9271c1fe921c9eb12ca55420b54e81bf8cc6521
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Thu Jun 25 09:38:14 2015 +0000

    Filter access time from stat output
---
 debbindiff/comparators/directory.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/debbindiff/comparators/directory.py b/debbindiff/comparators/directory.py
index 84650a6..5953d9f 100644
--- a/debbindiff/comparators/directory.py
+++ b/debbindiff/comparators/directory.py
@@ -38,11 +38,13 @@ class Stat(Command):
     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]+')
+    ACCESS_TIME_RE = re.compile(r'^Access: [0-9]{4}-[0-9]{2}-[0-9]{2}.*$')
 
     def filter(self, line):
         line = Stat.FILE_RE.sub('', line)
         line = Stat.DEVICE_RE.sub('', line)
         line = Stat.INODE_RE.sub('', line)
+        line = Stat.ACCESS_TIME_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