[gnome-software] Always return valid results when using the shell search provider
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Always return valid results when using the shell search provider
- Date: Mon, 7 Apr 2014 14:55:16 +0000 (UTC)
commit 21f0b37999cfce461fc191b2de4a89c7eb773de9
Author: Richard Hughes <richard hughsie com>
Date: Mon Apr 7 15:53:35 2014 +0100
Always return valid results when using the shell search provider
If the application is defined as a web-app, never try to find a package name
using PackageKit.
src/plugins/gs-plugin-packagekit-refine.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-packagekit-refine.c b/src/plugins/gs-plugin-packagekit-refine.c
index fd9195c..21151e1 100644
--- a/src/plugins/gs-plugin-packagekit-refine.c
+++ b/src/plugins/gs-plugin-packagekit-refine.c
@@ -602,6 +602,8 @@ gs_plugin_refine_require_details (GsPlugin *plugin,
gs_profile_start (plugin->profile, "packagekit-refine[source->licence]");
for (l = list; l != NULL; l = l->next) {
app = GS_APP (l->data);
+ if (gs_app_get_id_kind (app) == GS_APP_ID_KIND_WEBAPP)
+ continue;
if (gs_app_get_source_id_default (app) == NULL)
continue;
if (!gs_plugin_refine_app_needs_details (plugin, app))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]