mirror of
https://github.com/moparisthebest/pacman
synced 2025-02-28 09:21:53 -05:00
makepkg: add application/zip to the recognized types
The recent upgrade of magic.mime in the file program changed the mime type output to application/zip instead of application/x-zip as it is a registered type. Unfortunately we then just skipped zip file extraction becuase of this change. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
728b601f7b
commit
14e4366c78
@ -616,7 +616,7 @@ extract_sources() {
|
||||
local file_type=$(file -bizL "$file")
|
||||
local cmd=''
|
||||
case "$file_type" in
|
||||
*application/x-tar*|*application/x-zip*|*application/x-cpio*)
|
||||
*application/x-tar*|*application/zip*|*application/x-zip*|*application/x-cpio*)
|
||||
cmd="bsdtar -x -f $file" ;;
|
||||
*application/x-gzip*)
|
||||
cmd="gunzip -d -f $file" ;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user