[File] [PATCH v2] Print package name for GPKG

Michał Górny mgorny at gentoo.org
Fri Sep 9 14:18:52 UTC 2022


Not sure if v1 went through before I ^c-ed it.  v2 updates the test
case as well.

---
 magic/Magdir/archive    | 2 +-
 tests/gpkg-1-zst.result | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/magic/Magdir/archive b/magic/Magdir/archive
index d18d3e4b..65b19950 100644
--- a/magic/Magdir/archive
+++ b/magic/Magdir/archive
@@ -176,7 +176,7 @@
 # URL:		https://www.gentoo.org/glep/glep-0078.html
 # Note:		assumes the strict format
 0	name		tar-gpkg
->0	string		x		Gentoo GLEP 78 (GPKG) binary package
+>0	regex		[^/]+		Gentoo GLEP 78 (GPKG) binary package for "%s"
 !:mime	application/x-tar
 !:ext	tar
 # the logic below requires the gpkg-1 file to be empty
diff --git a/tests/gpkg-1-zst.result b/tests/gpkg-1-zst.result
index af9a080e..e9914945 100644
--- a/tests/gpkg-1-zst.result
+++ b/tests/gpkg-1-zst.result
@@ -1 +1 @@
-Gentoo GLEP 78 (GPKG) binary package using zstd compression
\ No newline at end of file
+Gentoo GLEP 78 (GPKG) binary package for "inkscape-1.2.1-r2-1" using zstd compression
-- 
2.37.3



More information about the File mailing list