Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-01-17 21:27:01 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-01-17 21:27:01 +0000
commitd0ba0dcbee36cdd60cf355956fa3d3ba00a79303 (patch)
tree2bb17ebf0c30150773834083e38896ff901efb67
parent4857012be7c5970bd2fe1c7aed37fb2e1071a802 (diff)
code cleanup
-rw-r--r--src/pacman/sync.c6
1 files changed, 3 insertions, 3 deletions
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) {