index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2013-06-19 01:15:02 -0400 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-06-26 15:32:16 +1000 |
commit | 2436351d6e745e5e9713709948c41b2db8ca201f (patch) | |
tree | 340e5ab724894d29074db0036c690543b0db10e5 /src | |
parent | dfcea1456da5df042f2ba2ba23efeb245436718f (diff) |
-rw-r--r-- | src/pacman/sync.c | 6 |
diff --git a/src/pacman/sync.c b/src/pacman/sync.c index 20930290..fc1314be 100644 --- a/src/pacman/sync.c +++ b/src/pacman/sync.c @@ -485,6 +485,7 @@ static int sync_list(alpm_list_t *syncs, alpm_list_t *targets) { alpm_list_t *i, *j, *ls = NULL; alpm_db_t *db_local = alpm_get_localdb(config->handle); + int ret = 0; if(targets) { for(i = targets; i; i = alpm_list_next(i)) { @@ -503,8 +504,7 @@ static int sync_list(alpm_list_t *syncs, alpm_list_t *targets) if(db == NULL) { pm_printf(ALPM_LOG_ERROR, _("repository \"%s\" was not found.\n"), repo); - alpm_list_free(ls); - return 1; + ret = 1; } ls = alpm_list_add(ls, db); @@ -536,7 +536,7 @@ static int sync_list(alpm_list_t *syncs, alpm_list_t *targets) alpm_list_free(ls); } - return 0; + return ret; } static alpm_db_t *get_db(const char *dbname) |