[pacman-dev] [PATCH 1/4] Use _alpm_pkg_find in deps search
Dan McGee
dan at archlinux.org
Tue Dec 14 13:46:16 EST 2010
Signed-off-by: Dan McGee <dan at archlinux.org>
---
lib/libalpm/deps.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c
index cdaf524..2157829 100644
--- a/lib/libalpm/deps.c
+++ b/lib/libalpm/deps.c
@@ -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));
for(i = pkglist; i; i = i->next) {
- void *pkg = i->data;
- if(alpm_list_find(targets, pkg, _alpm_pkg_cmp)) {
+ pmpkg_t *pkg = i->data;
+ if(_alpm_pkg_find(targets, pkg->name)) {
modified = alpm_list_add(modified, pkg);
} else {
dblist = alpm_list_add(dblist, pkg);
--
1.7.3.3
More information about the pacman-dev
mailing list