summaryrefslogtreecommitdiff
path: root/src/pacman/sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pacman/sync.c')
-rw-r--r--src/pacman/sync.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pacman/sync.c b/src/pacman/sync.c
index 78ce9b71..6a7d50e7 100644
--- a/src/pacman/sync.c
+++ b/src/pacman/sync.c
@@ -414,7 +414,8 @@ int sync_trans(alpm_list_t *targets, int sync_only)
alpm_logaction("synchronizing package lists");
if(!sync_synctree(config->op_s_sync, sync_dbs)) {
fprintf(stderr, _("error: failed to synchronize any databases\n"));
- return(1);
+ retval = 1;
+ goto cleanup;
}
if(sync_only) {
goto cleanup;