nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1From dc71304b3b1fd2ed5f7098d59fb7f6ef10cfdc85 Mon Sep 17 00:00:00 2001
2From: Christos Zoulas <christos@zoulas.com>
3Date: Sat, 31 Dec 2022 20:24:08 +0000
4Subject: [PATCH] pyzip improvements (FC Stegerman)
5
6---
7 magic/Magdir/archive | 9 +++++++--
8 1 file changed, 7 insertions(+), 2 deletions(-)
9
10diff --git a/magic/Magdir/archive b/magic/Magdir/archive
11index a706556d5..d58201e69 100644
12--- a/magic/Magdir/archive
13+++ b/magic/Magdir/archive
14@@ -1,5 +1,5 @@
15 #------------------------------------------------------------------------------
16-# $File: archive,v 1.179 2022/12/21 15:50:59 christos Exp $
17+# $File: archive,v 1.180 2022/12/31 20:24:08 christos Exp $
18 # archive: file(1) magic for archive formats (see also "msdos" for self-
19 # extracting compressed archives)
20 #
21@@ -1876,9 +1876,14 @@
22 # https://en.wikipedia.org/wiki/ZIP_(file_format)#End_of_central_directory_record_(EOCD)
23 # by Michal Gorny <mgorny@gentoo.org>
24 -2 uleshort 0
25->&-22 string PK\005\006 Zip archive, with extra data prepended
26+>&-22 string PK\005\006
27+# without #!
28+>>0 string !#! Zip archive, with extra data prepended
29 !:mime application/zip
30 !:ext zip/cbz
31+# with #!
32+>>0 string/w #!\ a
33+>>>&-1 string/T x %s script executable (Zip archive)
34
35 # ACE archive (from http://www.wotsit.org/download.asp?f=ace)
36 # by Stefan `Sec` Zehl <sec@42.org>