summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-01-13 21:51:05 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-01-13 21:51:05 +0000
commit9bf647c82bb496010474d2e49b7002be7da35485 (patch)
tree3471508f0ab76bfac6d3e9bb756652f61a183099
parent08bf45aceb898bad6b48f95d06157866f9f0103a (diff)
downloadpacman-9bf647c82bb496010474d2e49b7002be7da35485.tar.xz
code cleanup
-rw-r--r--src/pacman/sync.c8
1 files changed, 4 insertions, 4 deletions
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);