summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-01-06 20:47:26 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-01-06 20:47:26 +0000
commit45720f32e913170cb5445afd8c690f607b5377db (patch)
treeafea069c0e88f10f00d0bd5b70feb9d0330c5548
parent2c22045ba85778dcdcedeee9ab11b8631c007cc5 (diff)
downloadpacman-45720f32e913170cb5445afd8c690f607b5377db.tar.xz
fixed the usage of 4 list_is_in calls (should have been list_is_strin)
-rw-r--r--lib/libalpm/sync.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index 3eadfdf1..7f770f1c 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -456,10 +456,12 @@ int sync_prepare(pmtrans_t *trans, pmdb_t *db_local, PMList *dbs_sync, PMList **
/* figure out which one was requested in targets. If they both were,
* then it's still an unresolvable conflict. */
- if(pm_list_is_in(miss->depend.name, trans->targets) && !pm_list_is_in(miss->target, trans->targets)) {
+ if(pm_list_is_strin(miss->depend.name, trans->targets)
+ && !pm_list_is_strin(miss->target, trans->targets)) {
/* remove miss->target */
rmpkg = strdup(miss->target);
- } else if(pm_list_is_in(miss->target, trans->targets) && !pm_list_is_in(miss->depend.name, trans->targets)) {
+ } else if(pm_list_is_strin(miss->target, trans->targets)
+ && !pm_list_is_strin(miss->depend.name, trans->targets)) {
/* remove miss->depend.name */
rmpkg = strdup(miss->depend.name);
} else {