summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2010-06-12 22:11:24 -0400
committerJason Woodward2010-06-12 22:11:24 -0400
commit86bef1da61906e1898ff26240ceb98352c1d9a93 (patch)
tree3b387116731be3ac1df407ec6992bcfe5b49508b
parent6d5f241d97261adde767292b129f45de18ea3405 (diff)
downloadgslapt-86bef1da61906e1898ff26240ceb98352c1d9a93.tar.gz
do not use version analysis to determine if installed
-rw-r--r--src/callbacks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/callbacks.c b/src/callbacks.c
index 55e2231..920908b 100644
--- a/src/callbacks.c
+++ b/src/callbacks.c
@@ -546,7 +546,7 @@ void build_package_treeviewlist (GtkWidget *treeview)
installed_pkg = slapt_get_newest_pkg(installed,all->pkgs[i]->name);
if (installed_pkg != NULL) {
int cmp = slapt_cmp_pkgs(all->pkgs[i], installed_pkg);
- if (cmp == 0) {
+ if (strcmp(all->pkgs[i]->version,installed_pkg->version) == 0) {
is_inst = TRUE;
} else if (cmp > 0) {
is_an_upgrade = TRUE;