diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2006-01-17 21:30:02 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2006-01-17 21:30:02 +0000 |
commit | 4e8220fae7f90164313cf1e629721d6436477796 (patch) | |
tree | 67a8ef1880e0f1e3f57c18c20fdb59c15d3c6d10 /src | |
parent | d0ba0dcbee36cdd60cf355956fa3d3ba00a79303 (diff) | |
download | 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.c | 2 | ||||
-rw-r--r-- | src/pacman/sync.c | 4 |
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); } } |