[diffoscope] 01/01: Loosen matching of file(1)'s output to ensure we correctly also match TTF files under file 5.32.

Chris Lamb chris at chris-lamb.co.uk
Fri Sep 8 11:53:53 CEST 2017


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

lamby pushed a commit to branch master
in repository diffoscope.

commit af9fe0446de3595a1eaa8a9c9b401462a68842d0
Author: Chris Lamb <lamby at debian.org>
Date:   Fri Sep 8 10:52:04 2017 +0100

    Loosen matching of file(1)'s output to ensure we correctly also match TTF files under file 5.32.
---
 diffoscope/comparators/fonts.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diffoscope/comparators/fonts.py b/diffoscope/comparators/fonts.py
index 46648ca..c6bec9f 100644
--- a/diffoscope/comparators/fonts.py
+++ b/diffoscope/comparators/fonts.py
@@ -36,7 +36,7 @@ class Showttf(Command):
 
 
 class TtfFile(File):
-    FILE_TYPE_RE = re.compile(r'^(TrueType|OpenType) font data$')
+    FILE_TYPE_RE = re.compile(r'^(TrueType|OpenType) font data', re.IGNORECASE)
 
     def compare_details(self, other, source=None):
         return [Difference.from_command(Showttf, self.path, other.path)]

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list