[gnome-software] trivial: Add a small optimisation to avoid using PK for per-user plugins
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Add a small optimisation to avoid using PK for per-user plugins
- Date: Tue, 22 Dec 2015 15:30:16 +0000 (UTC)
commit 422ba5356fca44a654a8c75fe099dc44da470429
Author: Richard Hughes <richard hughsie com>
Date: Tue Dec 22 15:21:29 2015 +0000
trivial: Add a small optimisation to avoid using PK for per-user plugins
src/plugins/gs-plugin-packagekit-refine.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-packagekit-refine.c b/src/plugins/gs-plugin-packagekit-refine.c
index 78f5169..507596b 100644
--- a/src/plugins/gs-plugin-packagekit-refine.c
+++ b/src/plugins/gs-plugin-packagekit-refine.c
@@ -967,6 +967,10 @@ gs_plugin_refine (GsPlugin *plugin,
tmp = gs_app_get_metadata_item (app, "DataDir::desktop-filename");
if (tmp == NULL)
continue;
+ if (!g_str_has_prefix (tmp, "/usr/share/")) {
+ g_debug ("ignoring %s due to prefix", tmp);
+ continue;
+ }
ret = gs_plugin_packagekit_refine_from_desktop (plugin,
app,
tmp,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]