[pacman-dev] [PATCH] Support application/gzip MIME type in extraction

Eli Schwartz eschwartz at archlinux.org
Tue May 21 01:21:27 UTC 2019


From: Kevin Mihelich <kevin at archlinuxarm.org>

file 5.37 changed the gzip MIME type from application/x-gzip to
application/gzip, so support this when checking to extract source files.

Signed-off-by: Eli Schwartz <eschwartz at archlinux.org>
---

Sending on behalf of @leming who noticed this with gzipped patch files,
and pinged me via IRC.

 scripts/libmakepkg/source/file.sh.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/libmakepkg/source/file.sh.in b/scripts/libmakepkg/source/file.sh.in
index 08b8bef8..8492ba11 100644
--- a/scripts/libmakepkg/source/file.sh.in
+++ b/scripts/libmakepkg/source/file.sh.in
@@ -102,7 +102,7 @@ extract_file() {
 	case "$file_type" in
 		*application/x-tar*|*application/zip*|*application/x-zip*|*application/x-cpio*)
 			cmd="bsdtar" ;;
-		*application/x-gzip*)
+		*application/x-gzip*|*application/gzip*)
 			case "$ext" in
 				gz|z|Z) cmd="gzip" ;;
 				*) return;;
-- 
2.21.0


More information about the pacman-dev mailing list