Unverified Commit 17065a2d by Jörg Stucke Committed by GitHub

bugfix: ar archive mime should not match debian archives (#29)

* bugfix: ar archive mime should not match debian archives

the new ar archive definition was erroneously matching Debian package archives (.deb) which led to the MIME being application/x-archive. This in turn resulted in the file is not being correctly unpacked by the extractor.
parent 786b1c16
......@@ -139,7 +139,9 @@
!:mime application/x-shar
# ar archive
0 string =!<arch>\n current ar archive
# we don't want to match .deb archives here and negative lookahead is not allowed
# this should be equivalent to '!<arch>\n(?!deb)'
0 regex =!<arch>\n([^d]..|.[^e].|..[^b]|$) current ar archive
!:mime application/x-archive
0 string =<ar> System V Release 1 ar archive
0 string =<ar> System V Release 1 ar archive
!:mime application/x-archive
......@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "fact_helper_file"
version = "0.2.15"
version = "0.2.16"
authors = [
{name = "Johannes vom Dorp"}
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment