summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Mihelich <kevin@archlinuxarm.org>2019-05-21 03:21:27 +0200
committerAllan McRae <allan@archlinux.org>2019-05-28 02:48:42 +0200
commit99c5809bbf01725829ce67458565b46bce32eaa9 (patch)
treee4427acb83a8df39d3ea7b8b6efb8b88dc615106
parent0bc687e2e01f4e6e3f2a2f7ac10c7e1fdbaf5ba2 (diff)
downloadpacman-99c5809bbf01725829ce67458565b46bce32eaa9.tar.gz
pacman-99c5809bbf01725829ce67458565b46bce32eaa9.tar.xz
Support application/gzip MIME type in extraction
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@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--scripts/libmakepkg/source/file.sh.in2
1 files changed, 1 insertions, 1 deletions
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;;