From patchwork Wed Oct 23 18:41:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov via arch-projects X-Patchwork-Id: 1298 Return-Path: Delivered-To: patchwork@archlinux.org Received: from apollo.archlinux.org (localhost [127.0.0.1]) by apollo.archlinux.org (Postfix) with ESMTP id A7F28149D549F for ; Wed, 23 Oct 2019 18:41:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on apollo X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1, MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_MED=-2.3,SPF_HELO_NONE=0.001, T_DMARC_POLICY_NONE=0.01 autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-BL-Results: [127.0.9.2] Received: from orion.archlinux.org (orion.archlinux.org [88.198.91.70]) by apollo.archlinux.org (Postfix) with ESMTPS for ; Wed, 23 Oct 2019 18:41:53 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id E0503160CF45CB; Wed, 23 Oct 2019 18:41:51 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [5.9.250.164]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS; Wed, 23 Oct 2019 18:41:51 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id CC6E92D0E4; Wed, 23 Oct 2019 18:41:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=archlinux.org; s=luna2; t=1571856111; bh=o8pYFv7R2wfjazilGjkYGnnim8ZpRmDYnqMfwyNwgGk=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc; b=qX9LfQ0QsXUKec0RFTSwGGS9FiRulAaLEoF6ku9duAQPYKIELJNKNO4R0IZ3JoAxo jcUazgoe3PNEKM5NKH+INMdcBZ56lC6Wj1TJAyACLbQmYoJSCe1xfA2SOCrS2nnF6t hm6hLFyJW+fwvfmEX1ECtWT12llAmSDvSRncTxla5PCW5rYevyBSC9RBDpMJPIg8E2 h6A/6eG1dPwfWNcAxppAQaTBoNJ/mXanXzl/+hq0IlLXwUelTcY/NULnar8xbXZcjZ 8R2CwkNVLVusQakZkRzRYPBQxgN32XSwbHtxiCdGm6/iwUEshA3Q6Lgz9m3PEiXpW1 T2LCw0edsTEI0JbaQ5ZytMIykHfsBD46QRYgolso8KowcNDnOZmxD2t4m6eyKo1/yG RjKFMeo1+YxOy2DI+YE39UO72yE+2E1kMo0NQbY3T0tHZbnMXWkerwGZffhBQtjg+W Fk8SI6T91R1x7JukmbsKBRSOkH7me/imBOZsaaTibZdDF1i7/X6ejl1Qs/hq+6suc8 Ow/9z9MfH69N8gkyBWNVCEbO8YGtgpzZY68hqn6lKJeCcgTk8/maOwuEnCG8Ev19H2 UkYH/MKLRGaNMEfaKlH9I5yPEU455YbWDBwUTObSuRUqKpIwZ8uFbwhv3mi2Z1mwbH W4i5NGzbfAcIHTGq4OPlg0Ec= Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id BCDD52D0D9 for ; Wed, 23 Oct 2019 18:41:48 +0000 (UTC) Received: from orion.archlinux.org (orion.archlinux.org [IPv6:2a01:4f8:160:6087::1]) by luna.archlinux.org (Postfix) with ESMTPS for ; Wed, 23 Oct 2019 18:41:48 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 95649160CF45C0 for ; Wed, 23 Oct 2019 18:41:44 +0000 (UTC) Received: from mail.nullpointer.io (mail.nullpointer.io [139.162.176.164]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS for ; Wed, 23 Oct 2019 18:41:44 +0000 (UTC) Received: from node304.localdomain (unknown [158.140.234.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.nullpointer.io (Postfix) with ESMTPSA id 49C711E42B; Wed, 23 Oct 2019 18:41:41 +0000 (UTC) To: arch-projects@archlinux.org Date: Thu, 24 Oct 2019 07:41:35 +1300 Message-Id: <20191023184135.16631-1-george@rawlinson.net.nz> MIME-Version: 1.0 Subject: [arch-projects] [namcap][PATCH] Support additional compression methods X-BeenThere: arch-projects@archlinux.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Arch Linux projects development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: George Rawlinson via arch-projects Reply-To: Arch Linux projects development discussion Cc: George Rawlinson Errors-To: arch-projects-bounces@archlinux.org Sender: "arch-projects" Adds support for the following compression methods introduced in pacman 5.2: - zstd - lz4 - lzip Signed-off-by: George Rawlinson --- namcap | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/namcap b/namcap index 5f9ae19..ea0bc94 100755 --- a/namcap +++ b/namcap @@ -18,6 +18,12 @@ for arg in "${@}"; do lzo) cmd='lzop' ;; lrz) cmd='lrzip' extra_opts="-q -o -" ;; + lz4) cmd='lz4' + extra_opts="-q" ;; + lz) cmd='lzip' + extra_opts="-q" ;; + zst) cmd='zstd' + extra_opts="-q" ;; *) echo 'Unsupported compression'; exit 1;; esac