From patchwork Thu Aug 8 05:20:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lars Rustand X-Patchwork-Id: 1196 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 9BC16116C68D6 for ; Thu, 8 Aug 2019 05:21:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on apollo X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=DKIM_ADSP_CUSTOM_MED=0.001, DKIM_INVALID=1,DKIM_SIGNED=0.1,FREEMAIL_FROM=0.5,MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3,SPF_HELO_NONE=0.001,T_DMARC_POLICY_NONE=0.01, T_DMARC_SIMPLE_DKIM=0.01 autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-BL-Results: [127.0.9.2] [127.0.0.11] Received: from orion.archlinux.org (orion.archlinux.org [88.198.91.70]) by apollo.archlinux.org (Postfix) with ESMTPS for ; Thu, 8 Aug 2019 05:21:10 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 313331450CFDE0; Thu, 8 Aug 2019 05:21:06 +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) server-digest SHA256) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS; Thu, 8 Aug 2019 05:21:06 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id E7EC62BDC6; Thu, 8 Aug 2019 05:21:05 +0000 (UTC) Authentication-Results: luna.archlinux.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=BctC5niw Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 7EC8E2BDC4 for ; Thu, 8 Aug 2019 05:21:01 +0000 (UTC) Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by luna.archlinux.org (Postfix) with ESMTPS for ; Thu, 8 Aug 2019 05:21:01 +0000 (UTC) Received: by mail-lj1-x242.google.com with SMTP id h10so16175105ljg.0 for ; Wed, 07 Aug 2019 22:21:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=EJCbMXaViGVkQxixkkceXghXJqC/ReSIVJeJblZP7gw=; b=BctC5niwC3WIC6CaXCbjc4DFPsDJQTUgSBppQ3nV7fQlrcek0+N97mjhywiq71TdsJ atDTLs0VpgFnQ030yphOtUWm1cLeLKn2YDG2LfqygVQNMFWOczgO/+KGxrDEB8DKAgRV dsImgzsU3IV4tIO9KNDMulBr3E+6B7Aj0gjDASjowkpAZJRtPuGxCfeyQnyEbt/JdAT1 bAyMbvTJLvloCZM3d0pBGrmbEnqzUNB0Wz/SRoGshWpfwSBWFy7hD1l1qde2PL8xNUxl IZdjyiaD5B5M6gX00pHnfvk1MtTB93VxKmFrNBq8oP78fvu2qwhRh5rKTr7311+ZcmTf S66A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=EJCbMXaViGVkQxixkkceXghXJqC/ReSIVJeJblZP7gw=; b=HhOrHF/QCNDXqeOiM//q56PJjvRPHtXRx9o2kqGlSitN9ir2CNEkfr9+nJZNG+m8/N tulEWx8Y9oguA2p0pwCiEOjVll/YBgkGgF3+3qj4gZGPoSb8e9LFrToehlhyS7d96/A6 nuK1rtpweTD7ylDvJL1LG+ryrKP+FFM12mc4lsW9YRgoWpdGErfzvDex95o2iE7z/Ft4 lQqMX3ekIWvsgEIQ6CNwvKn5cD0vSYCIbwOPrKvb+rtuNJRq6N8ohnkOkwQgcobPlYMh BFkhiZNn0c7naaMWC/ZZ2O9xhU35t5+fs2nRwJSrmWkL6XV+Bsit7xlfRJXZXcurTmxU lE7A== X-Gm-Message-State: APjAAAXiY/2bjJkByyOnr5vip+mVc12UUiPrRbMMa5p/ZX5I9Y4cFWNz FcL1a1UAWwx8FPBUxK6AAtHQoyay X-Google-Smtp-Source: APXvYqx9GDRHPSgiO9W5rYjkq4YEYfbkzoRsmaAlnCQtvw+Rk31NzjPn243JAg0E31FbZLJXO6yP1Q== X-Received: by 2002:a2e:5b5b:: with SMTP id p88mr6690295ljb.192.1565241659617; Wed, 07 Aug 2019 22:20:59 -0700 (PDT) Received: from localhost.localdomain (236-196-232.connect.netcom.no. [178.232.196.236]) by smtp.googlemail.com with ESMTPSA id q17sm3755983lfb.26.2019.08.07.22.20.58 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 07 Aug 2019 22:20:59 -0700 (PDT) From: Lars Rustand To: pacman-contrib@lists.archlinux.org Subject: [PATCH] paclist: Allow listing packages from multiple repos at once Date: Thu, 8 Aug 2019 07:20:34 +0200 Message-Id: <20190808052034.4950-1-rustand.lars@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <1565209260.rmu8emiub9.astroid@hydrogen.kyriasis.com.none> References: <1565209260.rmu8emiub9.astroid@hydrogen.kyriasis.com.none> MIME-Version: 1.0 X-BeenThere: pacman-contrib@lists.archlinux.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for pacman-contrib development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: pacman-contrib-bounces@lists.archlinux.org Sender: "pacman-contrib" Signed-off-by: Lars Rustand --- src/paclist.sh.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/paclist.sh.in b/src/paclist.sh.in index efd47af..5c4c896 100644 --- a/src/paclist.sh.in +++ b/src/paclist.sh.in @@ -25,7 +25,7 @@ usage() { echo printf "List all packages installed from a given repository\n" "${myname}" echo - printf "Usage: %s \n" "${myname}" + printf "Usage: %s ...\n" "${myname}" echo printf "Example: %s testing\n" "${myname}" } @@ -49,7 +49,7 @@ elif [[ $1 = -@(V|-version) ]]; then exit 0 fi -pacman -Sl $1 | awk '/\[.*[[:alpha:]]+]$/ {print $2,$3}; +pacman -Sl "$@" | awk '/\[.*[[:alpha:]]+]$/ {print $2,$3}; /\[.*[[:digit:]]+]$/ {print $2,substr($NF, 1, length($NF) - 1)}' # exit with pacman's return value, not awk's