summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-03-15 18:37:11 +0000
committerAurelien Foret <aurelien@archlinux.org>2005-03-15 18:37:11 +0000
commit518c333ee1dc466544e83afb5f382320bb0d0f3d (patch)
tree994dcedc9218b8288a449fc387978ee4419c082b /lib
parentd04baabafa2ebbad92741d1f87e6ff32999f894a (diff)
downloadpacman-518c333ee1dc466544e83afb5f382320bb0d0f3d.tar.xz
Fixed a typo in add_loadtarget()
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/add.c2
1 files changed, 1 insertions, 1 deletions
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);