summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-01-17 22:30:02 +0100
committerAurelien Foret <aurelien@archlinux.org>2006-01-17 22:30:02 +0100
commit4e8220fae7f90164313cf1e629721d6436477796 (patch)
tree67a8ef1880e0f1e3f57c18c20fdb59c15d3c6d10 /src
parentd0ba0dcbee36cdd60cf355956fa3d3ba00a79303 (diff)
downloadpacman-4e8220fae7f90164313cf1e629721d6436477796.tar.gz
pacman-4e8220fae7f90164313cf1e629721d6436477796.tar.xz
added the possibility to "-Syy" (can be used to force synctrees update, even if mtimes are ok)
Diffstat (limited to 'src')
-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);
}
}