<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>-------- Forwarded Message --------</p>
<div class="moz-forward-container">
<table class="moz-email-headers-table" cellspacing="0"
cellpadding="0" border="0">
<tbody>
<tr>
<th align="RIGHT" valign="BASELINE" nowrap="nowrap">Subject:
</th>
<td>Re: [PATCH] paclist: Allow listing packages from
multiple repos at once</td>
</tr>
<tr>
<th align="RIGHT" valign="BASELINE" nowrap="nowrap">Date: </th>
<td>Sun, 4 Aug 2019 19:06:42 +0200</td>
</tr>
<tr>
<th align="RIGHT" valign="BASELINE" nowrap="nowrap">From: </th>
<td>Lars Rustand <a class="moz-txt-link-rfc2396E" href="mailto:rustand.lars@gmail.com"><rustand.lars@gmail.com></a></td>
</tr>
<tr>
<th align="RIGHT" valign="BASELINE" nowrap="nowrap">To: </th>
<td>Johannes Löthberg <a class="moz-txt-link-rfc2396E" href="mailto:johannes@kyriasis.com"><johannes@kyriasis.com></a></td>
</tr>
</tbody>
</table>
<br>
<br>
Thank you for the feedback. Here follows a corrected patch. Is
there a chance this will be merged?<br>
<br>
<br>
Signed-off-by: Lars Rustand <a class="moz-txt-link-rfc2396E" href="mailto:rustand.lars@gmail.com"><rustand.lars@gmail.com></a><br>
---<br>
src/paclist.sh.in | 4 ++--<br>
1 file changed, 2 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/src/paclist.sh.in b/src/paclist.sh.in<br>
index efd47af..5c4c896 100644<br>
--- a/src/paclist.sh.in<br>
+++ b/src/paclist.sh.in<br>
@@ -25,7 +25,7 @@ usage() {<br>
echo<br>
printf "List all packages installed from a given
repository\n" "${myname}"<br>
echo<br>
- printf "Usage: %s <repository>\n" "${myname}"<br>
+ printf "Usage: %s <repository> ...\n" "${myname}"<br>
echo<br>
printf "Example: %s testing\n" "${myname}"<br>
}<br>
@@ -49,7 +49,7 @@ elif [[ $1 = -@(V|-version) ]]; then<br>
exit 0<br>
fi<br>
<br>
-pacman -Sl $1 | awk '/\[.*[[:alpha:]]+]$/ {print $2,$3};<br>
+pacman -Sl "$@" | awk '/\[.*[[:alpha:]]+]$/ {print $2,$3};<br>
/\[.*[[:digit:]]+]$/ {print $2,substr($NF,
1, length($NF) - 1)}'<br>
<br>
# exit with pacman's return value, not awk's<br>
<pre class="moz-signature">--
2.22.0
</pre>
</div>
</body>
</html>