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/remove.c | |
parent | 046c8a6819a0533fb10434f30100f80bb960fe46 (diff) |
-rw-r--r-- | lib/libalpm/remove.c | 5 |
diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c index 010e7ab6..fb5ddb92 100644 --- a/lib/libalpm/remove.c +++ b/lib/libalpm/remove.c @@ -280,7 +280,7 @@ int _alpm_remove_commit(pmtrans_t *trans, pmdb_t *db) const char *pkgname = NULL; if(handle->trans->state == STATE_INTERRUPTED) { - break; + return(0); } /* get the name now so we can use it after package is removed */ @@ -360,8 +360,7 @@ int _alpm_remove_commit(pmtrans_t *trans, pmdb_t *db) } /* run ldconfig if it exists */ - if((trans->type != PM_TRANS_TYPE_REMOVEUPGRADE) - && (handle->trans->state != STATE_INTERRUPTED)) { + if(trans->type != PM_TRANS_TYPE_REMOVEUPGRADE) { _alpm_log(PM_LOG_DEBUG, "running \"ldconfig -r %s\"\n", handle->root); _alpm_ldconfig(handle->root); } |