[gnome-software/wip/ubuntu-xenial] ubuntu-reviews: Don't set an ID on the GsApps we create



commit 14cd7cf9ba8c01b8590362b7dd5f7417dd108d54
Author: Iain Lane <iain orangesquash org uk>
Date:   Thu Apr 28 13:25:57 2016 +0100

    ubuntu-reviews: Don't set an ID on the GsApps we create
    
    We were setting this to the package name, but that's not right - it
    should be the AppStream ID, which will be added elsewhere if it is
    available.

 src/plugins/gs-plugin-ubuntu-reviews.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-ubuntu-reviews.c b/src/plugins/gs-plugin-ubuntu-reviews.c
index 991386e..27e92da 100644
--- a/src/plugins/gs-plugin-ubuntu-reviews.c
+++ b/src/plugins/gs-plugin-ubuntu-reviews.c
@@ -1127,7 +1127,7 @@ gs_plugin_add_popular (GsPlugin *plugin,
                if (entry->rating < 80)
                        break;
 
-               app = gs_app_new (entry->package_name);
+               app = gs_app_new (NULL);
                gs_app_add_source (app, entry->package_name);
                gs_plugin_add_app (list, app);
        }


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