mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-10 13:28:12 -05:00
Use _alpm_pkg_find in deps search
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
a5e43b1605
commit
d1d163c5a3
@ -236,8 +236,8 @@ alpm_list_t SYMEXPORT *alpm_checkdeps(alpm_list_t *pkglist, int reversedeps,
|
|||||||
|
|
||||||
targets = alpm_list_join(alpm_list_copy(remove), alpm_list_copy(upgrade));
|
targets = alpm_list_join(alpm_list_copy(remove), alpm_list_copy(upgrade));
|
||||||
for(i = pkglist; i; i = i->next) {
|
for(i = pkglist; i; i = i->next) {
|
||||||
void *pkg = i->data;
|
pmpkg_t *pkg = i->data;
|
||||||
if(alpm_list_find(targets, pkg, _alpm_pkg_cmp)) {
|
if(_alpm_pkg_find(targets, pkg->name)) {
|
||||||
modified = alpm_list_add(modified, pkg);
|
modified = alpm_list_add(modified, pkg);
|
||||||
} else {
|
} else {
|
||||||
dblist = alpm_list_add(dblist, pkg);
|
dblist = alpm_list_add(dblist, pkg);
|
||||||
|
Loading…
Reference in New Issue
Block a user