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



commit 98aa521e1aa50c74cbdbba0fc53a80482e4ba5ce
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 348ef83..301deda 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -1069,6 +1069,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]