index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Aurelien Foret <aurelien@archlinux.org> | 2005-03-15 18:37:11 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2005-03-15 18:37:11 +0000 |
commit | 518c333ee1dc466544e83afb5f382320bb0d0f3d (patch) | |
tree | 994dcedc9218b8288a449fc387978ee4419c082b /lib/libalpm/add.c | |
parent | d04baabafa2ebbad92741d1f87e6ff32999f894a (diff) |
-rw-r--r-- | lib/libalpm/add.c | 2 |
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c index 2c883f10..6795216f 100644 --- a/lib/libalpm/add.c +++ b/lib/libalpm/add.c @@ -96,7 +96,7 @@ int add_loadtarget(pmdb_t *db, pmtrans_t *trans, char *name) for(j = trans->packages; j; j = j->next) { pmpkg_t *pkg = j->data; - if(strcmp(pkg->name, info->name) != 0) { + if(strcmp(pkg->name, info->name) == 0) { if(rpmvercmp(pkg->version, info->version) < 0) { _alpm_log(PM_LOG_WARNING, "replacing older version of %s in target list", pkg->name); FREEPKG(j->data); |