summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/sync.c
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2005-12-26 16:48:37 +0000
committerJudd Vinet <judd@archlinux.org>2005-12-26 16:48:37 +0000
commit6bd15469b1febef5d061905b0f7d8f69bf96a08f (patch)
tree11e64825a4aed1d4bfdf7306fdf36215acb57118 /lib/libalpm/sync.c
parent58c9d5d66387821260ba9bdd0815568039462f39 (diff)
downloadpacman-6bd15469b1febef5d061905b0f7d8f69bf96a08f.tar.xz
renamed rpmvercmp to versioncmp, added some fixes from isteve@bofh.cz
Diffstat (limited to 'lib/libalpm/sync.c')
-rw-r--r--lib/libalpm/sync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index 7e36fd11..9facd95f 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -40,7 +40,7 @@
#include "deps.h"
#include "trans.h"
#include "sync.h"
-#include "rpmvercmp.h"
+#include "versioncmp.h"
#include "handle.h"
#include "alpm.h"
@@ -214,7 +214,7 @@ int sync_sysupgrade(pmtrans_t *trans, pmdb_t *db_local, PMList *dbs_sync)
}
/* compare versions and see if we need to upgrade */
- cmp = rpmvercmp(local->version, spkg->version);
+ cmp = versioncmp(local->version, spkg->version);
if(cmp > 0 && !spkg->force) {
/* local version is newer */
_alpm_log(PM_LOG_FLOW1, "%s-%s: local version is newer",