summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 bbdb71e1..8511621a 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -383,7 +383,7 @@ int parseargs(int argc, char *argv[])
case 'u': config->op_s_upgrade = 1; break;
case 'v': config->verbose++; break;
case 'w': config->op_s_downloadonly = 1; break;
- case 'y': config->op_s_sync = 1; break;
+ case 'y': config->op_s_sync++; break;
case '?': return(1);
default: return(1);
}
diff --git a/src/pacman/sync.c b/src/pacman/sync.c
index fbe006ff..1291967d 100644
--- a/src/pacman/sync.c
+++ b/src/pacman/sync.c
@@ -148,7 +148,7 @@ static int sync_cleancache(int level)
return(0);
}
-static int sync_synctree(list_t *syncs)
+static int sync_synctree(int level, list_t *syncs)
{
char *root, *dbpath;
char path[PATH_MAX];
@@ -389,7 +389,7 @@ int pacman_sync(list_t *targets)
/* grab a fresh package list */
MSG(NL, ":: Synchronizing package databases...\n");
alpm_logaction("synchronizing package lists");
- if(sync_synctree(pmc_syncs)) {
+ if(sync_synctree(config->op_s_sync, pmc_syncs)) {
return(1);
}
}