[arch-projects] [namcap][PATCH] add support for zstd compression

George Rawlinson george at rawlinson.net.nz
Wed Oct 23 18:32:29 UTC 2019


Looks like I used git format-patch, rather than git send-email. The
patch is incomplete, as 2 other compression methods were added in pacman
5.2 (lzip & lz4). I'll discard this patch, and send another with support
for all 3 compression methods.

Regards,
George Rawlinson

On 19-10-22 22:33, George Rawlinson via arch-projects wrote:
> This patch adds support to namcap for zstd compression, introduced in
> pacman 5.2.0.
> ---
>  namcap | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/namcap b/namcap
> index 5f9ae19..1c07280 100755
> --- a/namcap
> +++ b/namcap
> @@ -18,6 +18,8 @@ for arg in "${@}"; do
>                         lzo)    cmd='lzop' ;;
>                         lrz)    cmd='lrzip'
>                                 extra_opts="-q -o -" ;;
> +                       zst)    cmd='zstd'
> +                               extra_opts="-q" ;;
>                         *)      echo 'Unsupported compression'; exit 1;;
>                 esac
> 
> --
> 2.23.0


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/arch-projects/attachments/20191024/e1d0777e/attachment.sig>


More information about the arch-projects mailing list