From 24881034f62cecb9e601fdfee9458f34f32b2507 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Mon, 24 Oct 2011 10:28:35 -0400 Subject: 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 --- contrib/paccache.in | 1 + 1 file changed, 1 insertion(+) (limited to 'contrib') 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" -- cgit v1.2.3-70-g09d2