maked verbose group listing enabled by -Sgg instead of -Sgv
This commit is contained in:
parent
b014cdbe8b
commit
08bf45aceb
2 changed files with 3 additions and 3 deletions
|
@ -350,7 +350,7 @@ int parseargs(int argc, char *argv[])
|
||||||
case 'd': config->flags |= PM_TRANS_FLAG_NODEPS; break;
|
case 'd': config->flags |= PM_TRANS_FLAG_NODEPS; break;
|
||||||
case 'e': config->op_q_orphans = 1; break;
|
case 'e': config->op_q_orphans = 1; break;
|
||||||
case 'f': config->flags |= PM_TRANS_FLAG_FORCE; 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 'h': config->help = 1; break;
|
||||||
case 'i':
|
case 'i':
|
||||||
config->op_q_info++;
|
config->op_q_info++;
|
||||||
|
|
|
@ -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)) {
|
for(lp = alpm_db_getgrpcache(sync->db); lp; lp = alpm_list_next(lp)) {
|
||||||
PM_GRP *grp = alpm_list_getdata(lp);
|
PM_GRP *grp = alpm_list_getdata(lp);
|
||||||
|
|
||||||
MSG(NL, "%s/%s\n", (char *)sync->treename, (char *)alpm_grp_getinfo(grp, PM_GRP_NAME));
|
MSG(NL, "%s/%s\n", sync->treename, (char *)alpm_grp_getinfo(grp, PM_GRP_NAME));
|
||||||
if(config->verbose > 0) {
|
if(config->group > 1) {
|
||||||
PM_LIST_display(" ", alpm_grp_getinfo(grp, PM_GRP_PKGNAMES));
|
PM_LIST_display(" ", alpm_grp_getinfo(grp, PM_GRP_PKGNAMES));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue