summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-10-24 16:28:35 +0200
committerDan McGee <dan@archlinux.org>2011-10-27 00:46:53 +0200
commit24881034f62cecb9e601fdfee9458f34f32b2507 (patch)
treec264682944c2f1279940feee08f674c74bfdf148 /contrib
parent8a9ce12a27970beb644952a83d27f54d1d7f751a (diff)
downloadpacman-24881034f62cecb9e601fdfee9458f34f32b2507.tar.gz
pacman-24881034f62cecb9e601fdfee9458f34f32b2507.tar.xz
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')
-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"