[Git][reproducible-builds/diffoscope][master] Adjust PGP file detection regex

Chris Lamb (@lamby) gitlab at salsa.debian.org
Thu Mar 19 16:23:00 UTC 2026



Chris Lamb pushed to branch master at Reproducible Builds / diffoscope


Commits:
1bb658f7 by Jelle van der Waa at 2026-03-18T21:33:56+01:00
Adjust PGP file detection regex

With the release of file 5.47 the output changed to "PGP compressed
data" from just plain "data".

- - - - -


1 changed file:

- diffoscope/comparators/pgp.py


Changes:

=====================================
diffoscope/comparators/pgp.py
=====================================
@@ -96,7 +96,7 @@ class PGPContainer(Archive):
 
 class PgpFile(File):
     DESCRIPTION = "PGP signed/encrypted messages"
-    FILE_TYPE_RE = re.compile(r"^PGP message\b")
+    FILE_TYPE_RE = re.compile(r"^(PGP message|PGP compressed data)\b")
     CONTAINER_CLASSES = [PGPContainer]
     FALLBACK_FILE_EXTENSION_SUFFIX = {".pgp", ".asc", ".pub", ".sec", ".gpg"}
 



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

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/1bb658f716dacef481c33c268da13608975f71e4
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/20260319/110d5884/attachment.htm>


More information about the rb-commits mailing list