diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2005-12-31 18:36:45 +0100 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2005-12-31 18:36:45 +0100 |
commit | 0c696200ae05745dafba0c60f6aea3d107f06949 (patch) | |
tree | c7621864f3cc796bcdacbcb417fa3ff7deabee2a /src | |
parent | 146ec957a76e370a020840d209c7077e2606a6ca (diff) | |
download | pacman-0c696200ae05745dafba0c60f6aea3d107f06949.tar.gz pacman-0c696200ae05745dafba0c60f6aea3d107f06949.tar.xz |
don't complain on PM_ERR_DB_UPTODATE errors (patch from VMiklos <vmiklos@frugalware.org>)
Diffstat (limited to 'src')
-rw-r--r-- | src/pacman/sync.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/pacman/sync.c b/src/pacman/sync.c index abc35940..84ed2b9c 100644 --- a/src/pacman/sync.c +++ b/src/pacman/sync.c @@ -187,8 +187,12 @@ static int sync_synctree(list_t *syncs) } else { snprintf(path, PATH_MAX, "%s%s/%s" PM_EXT_DB, root, dbpath, sync->treename); if(alpm_db_update(sync->db, path, newmtime) == -1) { - ERR(NL, "failed to synchronize %s (%s)\n", sync->treename, alpm_strerror(pm_errno)); - success--; + if(pm_errno != PM_ERR_DB_UPTODATE) { + 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 */ unlink(path); |