From patchwork Wed Aug 7 19:44:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lars Rustand X-Patchwork-Id: 1195 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 3D2CC116975CE for ; Wed, 7 Aug 2019 19:44:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on apollo X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=DKIM_SIGNED=0.1, DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,FREEMAIL_FROM=0.5, HTML_MESSAGE=0.001,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 ; Wed, 7 Aug 2019 19:44:30 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 56ECD144C2981A; Wed, 7 Aug 2019 19:44:25 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [IPv6:2a01:4f8:160:3033::2]) (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, 7 Aug 2019 19:44:25 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 4DA0B2BD3A; Wed, 7 Aug 2019 19:44:25 +0000 (UTC) Authentication-Results: luna.archlinux.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=eZaDWXDf Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id E01D12BD37 for ; Wed, 7 Aug 2019 19:44:22 +0000 (UTC) Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by luna.archlinux.org (Postfix) with ESMTPS for ; Wed, 7 Aug 2019 19:44:22 +0000 (UTC) Received: by mail-lf1-x12f.google.com with SMTP id b29so57681957lfq.1 for ; Wed, 07 Aug 2019 12:44:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:references:to:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=Noibj4d7fkl0mvQJFPmxddJzsTksIPdkUBEIfpmKZKY=; b=eZaDWXDf4Th1yugkpVFYhlVkwLXhdY/B9ahT23RvT/Mwh/9Her9qvyRRttJSe7DOMf qCquhuGVgpTFaeUA2YcetK6OpxNeY88qOGl0ceLN+nTwkosi3194Oxy4sQTJs+Me2EAS Hp22FFIbGBRFiUtJ1Pc4EjTc+uAfj6m1z30cndS9UenbTP0XlVOVEbb3vx/mr/aMTG+0 3O53LGXk70FistY3Zcz12qbhWycMxqwovDK5D1jCKwKpUXYquydb8IWA9DAUZAtBzWny SF0L/VeHP94gavxUl34x4dRYJ7ZDyPiQLyG8rxVF8td30iI4DEdEekJPmsaN4P0bGv4p EYZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:references:to:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=Noibj4d7fkl0mvQJFPmxddJzsTksIPdkUBEIfpmKZKY=; b=APWWvE17WjivuLlNCdmzd8Mlt8kDo3SKnC69j2TxochYgqBA0zFUwzazFuTy7BPwQP /6CFe/R/TJiNcW+4dGF6iNW1boU4wJOu0I0F2cwpy1XtOjzPizdXXH1EGd2ooYDkjgCT P1D+5kaM/8HFIAB5LibEV0ZZ9hOwpenxGdqolQEBGQcaa/qD6uA9+TUWvS4iXSxi+hlg 4G4+E4DoRq8Sg2u8K7K6kkIubNXCjZjWTD0KW0x8vPIsJ/ut+ovqrz3jeKylqR0dvNjm 0rHaEBA5GkHjTvendVQAAjuIqrTcBTfTUCcdirJO4NYxM6GrygQXTeGmqG+SNi7CwQYn rXCQ== X-Gm-Message-State: APjAAAWkPvRtV9W74kPrt+1KzXaiLQAx77LtXl8kRiD4Un/QO16vPA/z MknTzBpsIoQ4WR88wt8754BBOsVz X-Google-Smtp-Source: APXvYqwzAum+coYZwxFIhJ+ckVJ6nNdARQy8tfM5JKHh+nLW5PpDFpk6rXmEAgC97Jzqk2lkjoysMQ== X-Received: by 2002:a05:6512:15a:: with SMTP id m26mr6773652lfo.71.1565207061041; Wed, 07 Aug 2019 12:44:21 -0700 (PDT) Received: from [192.168.2.9] (236-196-232.connect.netcom.no. [178.232.196.236]) by smtp.gmail.com with ESMTPSA id v4sm18500751lji.103.2019.08.07.12.44.20 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Wed, 07 Aug 2019 12:44:20 -0700 (PDT) Subject: Fwd: Re: [PATCH] paclist: Allow listing packages from multiple repos at once References: To: pacman-contrib@lists.archlinux.org From: Lars Rustand X-Forwarded-Message-Id: Message-ID: <04e62b06-9149-54cf-f0e6-dd53b2d056dc@gmail.com> Date: Wed, 7 Aug 2019 21:44:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-PH 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" -------- Forwarded Message -------- Subject: Re: [PATCH] paclist: Allow listing packages from multiple repos at once Date: Sun, 4 Aug 2019 19:06:42 +0200 From: Lars Rustand To: Johannes Löthberg Thank you for the feedback. Here follows a corrected patch. Is there a chance this will be merged? Signed-off-by: Lars Rustand ---  src/paclist.sh.in | 4 ++--  1 file changed, 2 insertions(+), 2 deletions(-)  } @@ -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 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}"