mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
don't complain on PM_ERR_DB_UPTODATE errors (patch from VMiklos <vmiklos@frugalware.org>)
This commit is contained in:
parent
146ec957a7
commit
0c696200ae
@ -187,8 +187,12 @@ static int sync_synctree(list_t *syncs)
|
|||||||
} else {
|
} else {
|
||||||
snprintf(path, PATH_MAX, "%s%s/%s" PM_EXT_DB, root, dbpath, sync->treename);
|
snprintf(path, PATH_MAX, "%s%s/%s" PM_EXT_DB, root, dbpath, sync->treename);
|
||||||
if(alpm_db_update(sync->db, path, newmtime) == -1) {
|
if(alpm_db_update(sync->db, path, newmtime) == -1) {
|
||||||
ERR(NL, "failed to synchronize %s (%s)\n", sync->treename, alpm_strerror(pm_errno));
|
if(pm_errno != PM_ERR_DB_UPTODATE) {
|
||||||
success--;
|
ERR(NL, "failed to synchronize %s (%s)\n", sync->treename, alpm_strerror(pm_errno));
|
||||||
|
success--;
|
||||||
|
} else {
|
||||||
|
MSG(NL, ":: %s is up to date\n", sync->treename);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* remove the .tar.gz */
|
/* remove the .tar.gz */
|
||||||
unlink(path);
|
unlink(path);
|
||||||
|
Loading…
Reference in New Issue
Block a user