[gnome-software/gnome-3-16] Strip .el suffix from visible update versions



commit a583baeec50d43b856016dce7e74f4f7cb20ecf5
Author: Kalev Lember <klember redhat com>
Date:   Wed Jul 1 15:47:46 2015 +0200

    Strip .el suffix from visible update versions
    
    Use the same logic to remove the .el suffix as is done for the .fc
    suffix.

 src/gs-app.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index f0bfcbe..39c9eee 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -1021,6 +1021,9 @@ gs_app_get_ui_version (const gchar *version, guint64 flags)
                f = g_strstr_len (new, -1, ".fc");
                if (f != NULL)
                        *f= '\0';
+               f = g_strstr_len (new, -1, ".el");
+               if (f != NULL)
+                       *f= '\0';
        }
 
        /* then remove any release */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]