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

Allan McRae allan at archlinux.org
Tue May 28 00:49:32 UTC 2019


On 21/5/19 11:21 am, Eli Schwartz wrote:
> 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.
> 

Thanks.  Will hit master today.  Hopefully whoever packages pacman for
distros can pull this in.

>  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;;
> 


More information about the pacman-dev mailing list