1
0
mirror of https://github.com/moparisthebest/pacman synced 2025-01-10 13:28:12 -05:00

added the possibility to "-Syy" (can be used to force synctrees update, even if mtimes are ok)

This commit is contained in:
Aurelien Foret 2006-01-17 21:30:02 +00:00
parent d0ba0dcbee
commit 4e8220fae7
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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);
}
}