Skip to content
Snippets Groups Projects
Commit c45f587b authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Don't reject Debian .changes files if they contain non-printable characters....

Don't reject Debian .changes files if they contain non-printable characters. (Closes: #286)
parent aea11a3b
No related branches found
No related tags found
No related merge requests found
......@@ -217,7 +217,10 @@ class DebControlFile(File):
class DotChangesFile(DebControlFile):
DESCRIPTION = "Debian .changes files"
FILE_EXTENSION_SUFFIX = {".changes"}
FILE_TYPE_RE = re.compile(r"^(ASCII text|UTF-8 Unicode text)")
# .changes files can be identified "data" if they contain non-printable
# characters (Re: reproducible-builds/diffoscope#286)
FILE_TYPE_RE = re.compile(r"^(ASCII text|UTF-8 Unicode text|data)")
@classmethod
def recognizes(cls, file):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment