[Git][reproducible-builds/diffoscope][master] update APK file regex

Chris Lamb (@lamby) gitlab at salsa.debian.org
Tue Jan 10 09:16:21 UTC 2023



Chris Lamb pushed to branch master at Reproducible Builds / diffoscope


Commits:
72f8f33d by FC Stegerman at 2023-01-10T09:44:52+01:00
update APK file regex

- - - - -


1 changed file:

- diffoscope/comparators/apk.py


Changes:

=====================================
diffoscope/comparators/apk.py
=====================================
@@ -227,7 +227,9 @@ class Apksigner(Command):
 class ApkFile(ZipFileBase):
     DESCRIPTION = "Android APK files"
     FILE_TYPE_HEADER_PREFIX = b"PK\x03\x04"
-    FILE_TYPE_RE = re.compile(r"^((Java|Zip) archive data|Dalvik dex file)\b")
+    FILE_TYPE_RE = re.compile(
+        r"^(Android package|(Java|Zip) archive data|Dalvik dex file)\b"
+    )
     FILE_EXTENSION_SUFFIX = {".apk"}
     CONTAINER_CLASSES = [ApkContainer, ZipContainer]
 



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

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/72f8f33db5d17b2d13588b351b151cd8ccdb698b
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/20230110/5f59e742/attachment.htm>


More information about the rb-commits mailing list