summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-01-13 21:27:25 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-01-13 21:27:25 +0000
commit08bf45aceb898bad6b48f95d06157866f9f0103a (patch)
tree1f1d8246e4d358d01eb74a3441a8021dc614b10e /src
parentb014cdbe8b777e29d39fe52ff0bdeebfa1f8c216 (diff)
downloadpacman-08bf45aceb898bad6b48f95d06157866f9f0103a.tar.xz
maked verbose group listing enabled by -Sgg instead of -Sgv
Diffstat (limited to 'src')
-rw-r--r--src/pacman/pacman.c2
-rw-r--r--src/pacman/sync.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index aa1e0d4e..bbdb71e1 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -350,7 +350,7 @@ int parseargs(int argc, char *argv[])
case 'd': config->flags |= PM_TRANS_FLAG_NODEPS; break;
case 'e': config->op_q_orphans = 1; break;
case 'f': config->flags |= PM_TRANS_FLAG_FORCE; break;
- case 'g': config->group = 1; break;
+ case 'g': config->group++; break;
case 'h': config->help = 1; break;
case 'i':
config->op_q_info++;
diff --git a/src/pacman/sync.c b/src/pacman/sync.c
index 898f6050..9a89db15 100644
--- a/src/pacman/sync.c
+++ b/src/pacman/sync.c
@@ -254,8 +254,8 @@ static int sync_group(list_t *syncs, list_t *targets)
for(lp = alpm_db_getgrpcache(sync->db); lp; lp = alpm_list_next(lp)) {
PM_GRP *grp = alpm_list_getdata(lp);
- MSG(NL, "%s/%s\n", (char *)sync->treename, (char *)alpm_grp_getinfo(grp, PM_GRP_NAME));
- if(config->verbose > 0) {
+ MSG(NL, "%s/%s\n", sync->treename, (char *)alpm_grp_getinfo(grp, PM_GRP_NAME));
+ if(config->group > 1) {
PM_LIST_display(" ", alpm_grp_getinfo(grp, PM_GRP_PKGNAMES));
}
}