summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-12-31 17:59:28 +0000
committerAurelien Foret <aurelien@archlinux.org>2005-12-31 17:59:28 +0000
commitbfa0853acbdd5708082b812127e7312d6cffa89b (patch)
tree627a1131ea7fddadfba3eece8c6047cf2b48edae /src
parent2c0530e634f0f184baff6ab087ec044397f46eee (diff)
downloadpacman-bfa0853acbdd5708082b812127e7312d6cffa89b.tar.xz
fixed a segfault and added more verbose outputs in group handling (patch from VMiklos <vmiklos@frugalware.org>)
Diffstat (limited to 'src')
-rw-r--r--src/pacman/sync.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pacman/sync.c b/src/pacman/sync.c
index 84ed2b9c..b1499fb7 100644
--- a/src/pacman/sync.c
+++ b/src/pacman/sync.c
@@ -249,11 +249,13 @@ static int sync_group(list_t *syncs, list_t *targets)
sync_t *sync = j->data;
PM_LIST *lp;
- for(lp = alpm_db_getpkgcache(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);
MSG(NL, "%s/%s\n", (char *)sync->treename, (char *)alpm_grp_getinfo(grp, PM_GRP_NAME));
- PM_LIST_display(" ", alpm_grp_getinfo(grp, PM_GRP_PKGNAMES));
+ if(config->verbose > 1) {
+ PM_LIST_display(" ", alpm_grp_getinfo(grp, PM_GRP_PKGNAMES));
+ }
}
}
}