diff options
author | Dave Reisner <dreisner@archlinux.org> | 2011-10-24 10:28:35 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-10-26 17:46:53 -0500 |
commit | 24881034f62cecb9e601fdfee9458f34f32b2507 (patch) | |
tree | c264682944c2f1279940feee08f674c74bfdf148 /contrib | |
parent | 8a9ce12a27970beb644952a83d27f54d1d7f751a (diff) | |
download | 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-x | contrib/paccache.in | 1 |
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" |