Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/contrib/paccache.in
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-10-24 10:28:35 -0400
committerDan McGee <dan@archlinux.org>2011-10-26 17:46:53 -0500
commit24881034f62cecb9e601fdfee9458f34f32b2507 (patch)
treec264682944c2f1279940feee08f674c74bfdf148 /contrib/paccache.in
parent8a9ce12a27970beb644952a83d27f54d1d7f751a (diff)
paccache: ensure seen/seenarch vars are set
Doesn't do a whole lot of good to compare against values that are never set. Fixes bug where -vvv output wasn't grouping packages together properly. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'contrib/paccache.in')
-rwxr-xr-xcontrib/paccache.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/paccache.in b/contrib/paccache.in
index 4e185c27..a90b3d09 100755
--- a/contrib/paccache.in
+++ b/contrib/paccache.in
@@ -154,6 +154,7 @@ summarize() {
if (( verbose >= 3 )); then
[[ $pkg =~ $pkg_re ]] && name=${BASH_REMATCH[1]} arch=${BASH_REMATCH[2]}
if [[ -z $seen || $seenarch != "$arch" || $seen != "$name" ]]; then
+ seen=$name seenarch=$arch
printf '%s (%s):\n' "$name" "$arch"
fi
printf ' %s\n' "$pkg"