diff options
author | Judd Vinet <judd@archlinux.org> | 2005-12-26 16:48:37 +0000 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2005-12-26 16:48:37 +0000 |
commit | 6bd15469b1febef5d061905b0f7d8f69bf96a08f (patch) | |
tree | 11e64825a4aed1d4bfdf7306fdf36215acb57118 /lib/libalpm/deps.c | |
parent | 58c9d5d66387821260ba9bdd0815568039462f39 (diff) | |
download | pacman-6bd15469b1febef5d061905b0f7d8f69bf96a08f.tar.xz |
renamed rpmvercmp to versioncmp, added some fixes from isteve@bofh.cz
Diffstat (limited to 'lib/libalpm/deps.c')
-rw-r--r-- | lib/libalpm/deps.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c index e794ae52..87d97053 100644 --- a/lib/libalpm/deps.c +++ b/lib/libalpm/deps.c @@ -32,7 +32,7 @@ #include "cache.h" #include "provide.h" #include "deps.h" -#include "rpmvercmp.h" +#include "versioncmp.h" #include "handle.h" extern pmhandle_t *handle; @@ -193,7 +193,7 @@ PMList *checkdeps(pmdb_t *db, unsigned char op, PMList *packages) for(ptr = ver; *ptr != '-'; ptr++); *ptr = '\0'; } - cmp = rpmvercmp(ver, depend.version); + cmp = versioncmp(ver, depend.version); switch(depend.mod) { case PM_DEP_MOD_EQ: found = (cmp == 0); break; case PM_DEP_MOD_GE: found = (cmp >= 0); break; @@ -330,7 +330,7 @@ PMList *checkdeps(pmdb_t *db, unsigned char op, PMList *packages) for(ptr = ver; *ptr != '-'; ptr++); *ptr = '\0'; } - cmp = rpmvercmp(ver, depend.version); + cmp = versioncmp(ver, depend.version); switch(depend.mod) { case PM_DEP_MOD_EQ: found = (cmp == 0); break; case PM_DEP_MOD_GE: found = (cmp >= 0); break; @@ -358,7 +358,7 @@ PMList *checkdeps(pmdb_t *db, unsigned char op, PMList *packages) for(ptr = ver; *ptr != '-'; ptr++); *ptr = '\0'; } - cmp = rpmvercmp(ver, depend.version); + cmp = versioncmp(ver, depend.version); switch(depend.mod) { case PM_DEP_MOD_EQ: found = (cmp == 0); break; case PM_DEP_MOD_GE: found = (cmp >= 0); break; @@ -387,7 +387,7 @@ PMList *checkdeps(pmdb_t *db, unsigned char op, PMList *packages) for(ptr = ver; *ptr != '-'; ptr++); *ptr = '\0'; } - cmp = rpmvercmp(ver, depend.version); + cmp = versioncmp(ver, depend.version); switch(depend.mod) { case PM_DEP_MOD_EQ: found = (cmp == 0); break; case PM_DEP_MOD_GE: found = (cmp >= 0); break; |