index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2015-07-05 17:33:07 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-07-14 17:15:33 +1000 |
commit | 94204d108984c46966c681a05f232d830812d440 (patch) | |
tree | b6ac2eab5ea83a8c23797ec45467daf5e0807c04 /lib/libalpm | |
parent | ff487212a2701c6a9755acb3ea8e75764eed9488 (diff) |
-rw-r--r-- | lib/libalpm/remove.c | 4 |
diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c index a5840dc6..bc5713a6 100644 --- a/lib/libalpm/remove.c +++ b/lib/libalpm/remove.c @@ -261,7 +261,9 @@ int _alpm_remove_prepare(alpm_handle_t *handle, alpm_list_t **data) } /* Note packages being removed that are optdepends for installed packages */ - remove_notify_needed_optdepends(handle, trans->remove); + if(!(trans->flags & ALPM_TRANS_FLAG_NODEPS)) { + remove_notify_needed_optdepends(handle, trans->remove); + } if(!(trans->flags & ALPM_TRANS_FLAG_NODEPS)) { event.type = ALPM_EVENT_CHECKDEPS_DONE; |