aboutsummaryrefslogtreecommitdiffstats
path: root/src/package.c
diff options
context:
space:
mode:
authorJason Woodward2009-09-01 20:27:52 -0400
committerJason Woodward2009-09-01 20:27:52 -0400
commit3b81d074d8bee1a0885ea1c6f3a7d678476284d1 (patch)
treec622d12948c63c6f3f2bfb46431b3ba6b9738684 /src/package.c
parent5193eb8bde7158e9fb1095033c4705eabc854929 (diff)
downloadslapt-get-3b81d074d8bee1a0885ea1c6f3a7d678476284d1.tar.gz
normalize search routine when doing package lookups by details instead of just name and version. This fixes a bug in gslapt that causes the package lookup to fail for two similar packages.
Diffstat (limited to 'src/package.c')
-rw-r--r--src/package.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/package.c b/src/package.c
index 6f099cf..dbd8d11 100644
--- a/src/package.c
+++ b/src/package.c
@@ -1863,7 +1863,7 @@ slapt_pkg_info_t *slapt_get_pkg_by_details(struct slapt_pkg_list *list,
if ( name_cmp == 0 ) {
- int version_cmp = slapt_cmp_pkg_versions(list->pkgs[pivot]->version, version);
+ int version_cmp = strverscmp(list->pkgs[pivot]->version, version);
if ( version_cmp == 0 ) {