mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-10 05:18:16 -05:00
added the possibility to "-Syy" (can be used to force synctrees update, even if mtimes are ok)
This commit is contained in:
parent
d0ba0dcbee
commit
4e8220fae7
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user