[Reproducible-commits] [debbindiff] 02/06: Filter image name from squashfs superblock information

Jérémy Bobbio lunar at moszumanska.debian.org
Wed Jun 24 17:37:04 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 b1a36175bad73ec2b7ffa56c5cb5ff31240f9790
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Wed Jun 24 15:03:19 2015 +0000

    Filter image name from squashfs superblock information
---
 debbindiff/comparators/squashfs.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/debbindiff/comparators/squashfs.py b/debbindiff/comparators/squashfs.py
index e93afe6..ffe252b 100644
--- a/debbindiff/comparators/squashfs.py
+++ b/debbindiff/comparators/squashfs.py
@@ -17,6 +17,7 @@
 # You should have received a copy of the GNU General Public License
 # along with debbindiff.  If not, see <http://www.gnu.org/licenses/>.
 
+import re
 import subprocess
 import os.path
 import debbindiff.comparators
@@ -37,6 +38,10 @@ class SquashfsSuperblock(Command):
     def cmdline(self):
         return ['unsquashfs', '-s', self.path]
 
+    def filter(self, line):
+        # strip filename
+        return re.sub(r'^(Found a valid .*) on .*', '\\1', line)
+
 
 class SquashfsListing(Command):
     @tool_required('unsquashfs')

-- 
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