index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Chantry Xavier <shiningxc@gmail.com> | 2007-09-08 00:36:38 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-09-16 20:17:44 -0500 |
commit | b0aa51059233849b0a7ef8d6a851750776ce6645 (patch) | |
tree | 29341593cb82011f65e901aa63bc76f7449d85a2 /lib/libalpm/add.c | |
parent | 046c8a6819a0533fb10434f30100f80bb960fe46 (diff) |
-rw-r--r-- | lib/libalpm/add.c | 8 |
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c index 3f9a2a85..98906879 100644 --- a/lib/libalpm/add.c +++ b/lib/libalpm/add.c @@ -905,7 +905,7 @@ int _alpm_add_commit(pmtrans_t *trans, pmdb_t *db) /* loop through our package list adding/upgrading one at a time */ for(targ = trans->packages; targ; targ = targ->next) { if(handle->trans->state == STATE_INTERRUPTED) { - break; + return(0); } pmpkg_t *newpkg = (pmpkg_t *)targ->data; @@ -914,10 +914,8 @@ int _alpm_add_commit(pmtrans_t *trans, pmdb_t *db) } /* run ldconfig if it exists */ - if(handle->trans->state != STATE_INTERRUPTED) { - _alpm_log(PM_LOG_DEBUG, "running \"ldconfig -r %s\"\n", handle->root); - _alpm_ldconfig(handle->root); - } + _alpm_log(PM_LOG_DEBUG, "running \"ldconfig -r %s\"\n", handle->root); + _alpm_ldconfig(handle->root); return(0); } |