From d0ba0dcbee36cdd60cf355956fa3d3ba00a79303 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Tue, 17 Jan 2006 21:27:01 +0000 Subject: code cleanup --- src/pacman/sync.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/pacman/sync.c b/src/pacman/sync.c index 6e8ba5c8..fbe006ff 100644 --- a/src/pacman/sync.c +++ b/src/pacman/sync.c @@ -230,7 +230,7 @@ static int sync_search(list_t *syncs, list_t *targets) return(0); } -static int sync_group(list_t *syncs, list_t *targets) +static int sync_group(int level, list_t *syncs, list_t *targets) { list_t *i, *j; @@ -255,7 +255,7 @@ static int sync_group(list_t *syncs, list_t *targets) PM_GRP *grp = alpm_list_getdata(lp); MSG(NL, "%s/%s\n", sync->treename, (char *)alpm_grp_getinfo(grp, PM_GRP_NAME)); - if(config->group > 1) { + if(level > 1) { PM_LIST_display(" ", alpm_grp_getinfo(grp, PM_GRP_PKGNAMES)); } } @@ -399,7 +399,7 @@ int pacman_sync(list_t *targets) } if(config->group) { - return(sync_group(pmc_syncs, targets)); + return(sync_group(config->group, pmc_syncs, targets)); } if(config->op_s_info) { -- cgit v1.2.3-70-g09d2