[Git][reproducible-builds/diffoscope][master] Limit .dsc and .buildinfo file matching to files in ASCII format. (Closes:...

Chris Lamb gitlab at salsa.debian.org
Sat Nov 23 17:51:27 UTC 2019



Chris Lamb pushed to branch master at Reproducible Builds / diffoscope


Commits:
ab342790 by Chris Lamb at 2019-11-23T17:51:06Z
Limit .dsc and .buildinfo file matching to files in ASCII format. (Closes: reproducible-builds/diffoscope#77)

- - - - -


1 changed file:

- diffoscope/comparators/debian.py


Changes:

=====================================
diffoscope/comparators/debian.py
=====================================
@@ -166,6 +166,7 @@ class DebControlFile(File):
 class DotChangesFile(DebControlFile):
     DESCRIPTION = "Debian .changes files"
     FILE_EXTENSION_SUFFIX = '.changes'
+    FILE_TYPE_RE = re.compile(r'^ASCII text')
 
     @classmethod
     def recognizes(cls, file):
@@ -262,6 +263,7 @@ class DotBuildinfoFile(DebControlFile):
     DESCRIPTION = "Debian .buildinfo files"
     CONTAINER_CLASS = DotBuildinfoContainer
     FILE_EXTENSION_SUFFIX = '.buildinfo'
+    FILE_TYPE_RE = re.compile(r'^ASCII text')
 
     @classmethod
     def recognizes(cls, file):



View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/commit/ab342790d824d1683d8f7654c570b810e3540274

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/commit/ab342790d824d1683d8f7654c570b810e3540274
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20191123/2b7c5cdd/attachment.htm>


More information about the rb-commits mailing list