[Git][reproducible-builds/diffoscope][master] Also permit UTF-8 encoded .dsc and .changes files. (re. #77)
Chris Lamb
gitlab at salsa.debian.org
Mon Nov 25 12:55:38 UTC 2019
Chris Lamb pushed to branch master at Reproducible Builds / diffoscope
Commits:
c1374282 by Chris Lamb at 2019-11-25T12:55:25Z
Also permit UTF-8 encoded .dsc and .changes files. (re. #77)
- - - - -
1 changed file:
- diffoscope/comparators/debian.py
Changes:
=====================================
diffoscope/comparators/debian.py
=====================================
@@ -166,7 +166,7 @@ class DebControlFile(File):
class DotChangesFile(DebControlFile):
DESCRIPTION = "Debian .changes files"
FILE_EXTENSION_SUFFIX = '.changes'
- FILE_TYPE_RE = re.compile(r'^ASCII text')
+ FILE_TYPE_RE = re.compile(r'^(ASCII text|UTF-8 Unicode text)')
@classmethod
def recognizes(cls, file):
@@ -263,7 +263,7 @@ class DotBuildinfoFile(DebControlFile):
DESCRIPTION = "Debian .buildinfo files"
CONTAINER_CLASS = DotBuildinfoContainer
FILE_EXTENSION_SUFFIX = '.buildinfo'
- FILE_TYPE_RE = re.compile(r'^ASCII text')
+ FILE_TYPE_RE = re.compile(r'^(ASCII text|UTF-8 Unicode text)')
@classmethod
def recognizes(cls, file):
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/commit/c13742824b98f79336a2e7e310eb182176521712
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/commit/c13742824b98f79336a2e7e310eb182176521712
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/20191125/3ee7d38d/attachment.htm>
More information about the rb-commits
mailing list