From 9bf647c82bb496010474d2e49b7002be7da35485 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Fri, 13 Jan 2006 21:51:05 +0000 Subject: code cleanup --- src/pacman/sync.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/pacman') diff --git a/src/pacman/sync.c b/src/pacman/sync.c index 9a89db15..c6a8fa3d 100644 --- a/src/pacman/sync.c +++ b/src/pacman/sync.c @@ -177,9 +177,6 @@ static int sync_synctree(list_t *syncs) snprintf(path, PATH_MAX, "%s%s", root, dbpath); ret = downloadfiles_forreal(sync->servers, path, files, lastupdate, newmtime); - if(strlen(newmtime)) { - vprint("sync: new mtime for %s: %s\n", sync->treename, newmtime); - } FREELIST(files); if(ret > 0) { ERR(NL, "failed to synchronize %s\n", sync->treename); @@ -187,10 +184,13 @@ static int sync_synctree(list_t *syncs) } else if(ret < 0) { MSG(NL, " %s is up to date\n", sync->treename); } else { + if(strlen(newmtime)) { + vprint("sync: new mtime for %s: %s\n", sync->treename, newmtime); + } snprintf(path, PATH_MAX, "%s%s/%s" PM_EXT_DB, root, dbpath, sync->treename); if(alpm_db_update(sync->db, path, newmtime) == -1) { if(pm_errno != PM_ERR_DB_UPTODATE) { - ERR(NL, "failed to synchronize %s (%s)\n", sync->treename, alpm_strerror(pm_errno)); + ERR(NL, "failed to update %s (%s)\n", sync->treename, alpm_strerror(pm_errno)); success--; } else if(!strlen(newmtime)){ MSG(NL, ":: %s is up to date\n", sync->treename); -- cgit v1.2.3-70-g09d2