[diffoscope] 02/02: comparators.apk: APK files can also be identified as "DOS/MBR boot sector". This is reasonably safe unless you have a real boot sector with an .apk extension. Thanks to Hans-Christoph Steiner <hans at eds.org> for the report and testcases. (Closes: #868486)
Chris Lamb
chris at chris-lamb.co.uk
Tue Jul 18 23:10:07 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 c14424059b7836d59da8e18c260e34dc797cb02e
Author: Chris Lamb <lamby at debian.org>
Date: Tue Jul 18 22:07:43 2017 +0100
comparators.apk: APK files can also be identified as "DOS/MBR boot sector". This is reasonably safe unless you have a real boot sector with an .apk extension. Thanks to Hans-Christoph Steiner <hans at eds.org> for the report and testcases. (Closes: #868486)
Signed-off-by: Chris Lamb <lamby at debian.org>
---
diffoscope/comparators/apk.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/diffoscope/comparators/apk.py b/diffoscope/comparators/apk.py
index 1d4aa0d..dc8a136 100644
--- a/diffoscope/comparators/apk.py
+++ b/diffoscope/comparators/apk.py
@@ -146,7 +146,7 @@ class ApkContainer(Archive):
return differences
class ApkFile(File):
- RE_FILE_TYPE = re.compile(r'^(Java|Zip) archive data.*\b')
+ RE_FILE_TYPE = re.compile(r'^((Java|Zip) archive data|DOS/MBR boot sector).*\b')
RE_FILE_EXTENSION = re.compile(r'\.apk$')
CONTAINER_CLASS = ApkContainer
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the diffoscope
mailing list