pacman: show groups once with -Sg
commit0145604728360acaf56e6d50bc03e78bfab7585c
authorPierre <pierre@spotify.com>
Mon, 2 Apr 2012 02:16:28 +0000 (2 04:16 +0200)
committerDan McGee <dan@archlinux.org>
Sat, 7 Apr 2012 16:16:58 +0000 (7 11:16 -0500)
tree339770a8e0430086c48a13cd40358c567b1ed4d3
parentb5b9860a2e7f73b0445131a51006c8c95f1f1b91
pacman: show groups once with -Sg

Only displays groups that haven't appeared yet..
Previously 'pacman -Sg' iterated over syncs, printed every group.

This change does not affect '-Sgg' which still orders by sync first.

To reproduce, on a current Arch Linux with [extra] and [community]:
$ pacman -Sg|sort|uniq -c|sort -n
[...]
      1 xorg-fonts
      2 vim-plugins
      2 xfce4-goodies

Signed-off-by: Pierre <pierre@spotify.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
src/pacman/sync.c