aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2009-09-01 20:27:52 -0400
committerJason Woodward2009-09-01 20:27:52 -0400
commit3b81d074d8bee1a0885ea1c6f3a7d678476284d1 (patch)
treec622d12948c63c6f3f2bfb46431b3ba6b9738684
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.
-rw-r--r--ChangeLog5
-rw-r--r--src/package.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 032cab8..a227d32 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,9 @@
+0.10.2a Sep 01, 2009
+ * 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.
+
0.10.2 Aug 15, 2009
* do not exit immediately if we cannot open the default slapt-getrc, check
instead if --config was used, otherwise exit (thanks Vasileios Porpodas)
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 ) {