mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-11 20:05:07 -05:00
added the possibility to force synctree update by using -Syy
This commit is contained in:
parent
9cc5e60e6d
commit
a56e13d770
@ -161,13 +161,15 @@ static int sync_synctree(int level, list_t *syncs)
|
|||||||
for(i = syncs; i; i = i->next) {
|
for(i = syncs; i; i = i->next) {
|
||||||
list_t *files = NULL;
|
list_t *files = NULL;
|
||||||
char newmtime[16] = "";
|
char newmtime[16] = "";
|
||||||
char *lastupdate;
|
char *lastupdate = NULL;
|
||||||
sync_t *sync = (sync_t *)i->data;
|
sync_t *sync = (sync_t *)i->data;
|
||||||
|
|
||||||
/* get the lastupdate time */
|
if(level < 2) {
|
||||||
lastupdate = alpm_db_getinfo(sync->db, PM_DB_LASTUPDATE);
|
/* get the lastupdate time */
|
||||||
if(strlen(lastupdate) == 0) {
|
lastupdate = alpm_db_getinfo(sync->db, PM_DB_LASTUPDATE);
|
||||||
vprint("failed to get lastupdate time for %s (no big deal)\n", sync->treename);
|
if(strlen(lastupdate) == 0) {
|
||||||
|
vprint("failed to get lastupdate time for %s (no big deal)\n", sync->treename);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* build a one-element list */
|
/* build a one-element list */
|
||||||
|
Loading…
Reference in New Issue
Block a user