[gnome-software] trivial: Use the whole name when refining ID->Item



commit cb434af67d8ce7908a0be0fce7f8477f71935411
Author: Richard Hughes <richard hughsie com>
Date:   Mon Oct 28 13:05:45 2013 +0000

    trivial: Use the whole name when refining ID->Item

 src/gs-app.c                      |    4 ++--
 src/gs-plugin-loader.c            |    2 +-
 src/plugins/gs-plugin-appstream.c |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index 9644997..2fa8309 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -214,8 +214,8 @@ gs_app_to_string (GsApp *app)
                                gs_app_id_kind_to_string (priv->id_kind));
        g_string_append_printf (str, "\tstate:\t%s\n",
                                gs_app_state_to_string (priv->state));
-       if (priv->id != NULL)
-               g_string_append_printf (str, "\tid:\t%s\n", priv->id);
+       if (priv->id_full != NULL)
+               g_string_append_printf (str, "\tid:\t%s\n", priv->id_full);
        if (priv->name != NULL)
                g_string_append_printf (str, "\tname:\t%s\n", priv->name);
        if (priv->icon != NULL)
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index 7db1495..9045203 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -402,7 +402,7 @@ gs_plugin_loader_get_app_str (GsApp *app)
        const gchar *id;
 
        /* first try the actual id */
-       id = gs_app_get_id (app);
+       id = gs_app_get_id_full (app);
        if (id != NULL)
                return id;
 
diff --git a/src/plugins/gs-plugin-appstream.c b/src/plugins/gs-plugin-appstream.c
index 5796042..64fdb75 100644
--- a/src/plugins/gs-plugin-appstream.c
+++ b/src/plugins/gs-plugin-appstream.c
@@ -547,7 +547,7 @@ gs_plugin_refine_from_id (GsPlugin *plugin,
        AppstreamApp *item;
 
        /* find anything that matches the ID */
-       id = gs_app_get_id (app);
+       id = gs_app_get_id_full (app);
        if (id == NULL)
                goto out;
        item = appstream_cache_get_item_by_id (plugin->priv->cache, id);


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