[PATCH] paclist: Allow listing packages from multiple repos at once
Johannes Löthberg
johannes at kyriasis.com
Thu Aug 8 15:54:32 UTC 2019
Excerpts from Lars Rustand's message of August 8, 2019 7:20:
> Signed-off-by: Lars Rustand <rustand.lars at gmail.com>
> ---
> 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 <repository>\n" "${myname}"
> + printf "Usage: %s <repository> ...\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
> --
> 2.22.0
>
Merged, thanks.
--
Sincerely,
Johannes Löthberg :: SA0DEM
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 1727 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/pacman-contrib/attachments/20190808/51703c6b/attachment.sig>
More information about the pacman-contrib
mailing list