index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2008-05-14 00:37:51 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-05-14 00:37:51 -0500 |
commit | a8ee1854135f333091337e3dbcb1f96cdb1aab01 (patch) | |
tree | ff19ee0cd3fbee34033d3c61074cd3b219a1e764 /lib/libalpm/add.c | |
parent | 84283672853350a84d2a71b72dc06e180cad1587 (diff) |
-rw-r--r-- | lib/libalpm/add.c | 2 |
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c index b8d76792..a8249c40 100644 --- a/lib/libalpm/add.c +++ b/lib/libalpm/add.c @@ -72,7 +72,7 @@ int _alpm_add_loadtarget(pmtrans_t *trans, pmdb_t *db, char *name) for(i = trans->packages; i; i = i->next) { pmpkg_t *transpkg = i->data; if(strcmp(transpkg->name, pkgname) == 0) { - if(_alpm_versioncmp(transpkg->version, pkgver) < 0) { + if(alpm_pkg_vercmp(transpkg->version, pkgver) < 0) { _alpm_log(PM_LOG_WARNING, _("replacing older version %s-%s by %s in target list\n"), transpkg->name, transpkg->version, pkgver); _alpm_pkg_free(i->data); |