[gnome-software/gnome-3-22] packagekit: Support /usr/share/metainfo for addons too
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-22] packagekit: Support /usr/share/metainfo for addons too
- Date: Sat, 20 May 2017 19:52:13 +0000 (UTC)
commit 87e5ecfba41e2fb5bef50d7c86cc271ef4169e8d
Author: Richard Hughes <richard hughsie com>
Date: Fri May 19 18:00:28 2017 +0100
packagekit: Support /usr/share/metainfo for addons too
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 341a154..2e4c1df 100644
--- a/src/plugins/gs-plugin-packagekit-refine.c
+++ b/src/plugins/gs-plugin-packagekit-refine.c
@@ -879,6 +879,10 @@ gs_plugin_refine (GsPlugin *plugin,
break;
case AS_APP_KIND_ADDON:
fn = g_strdup_printf ("/usr/share/appdata/%s.metainfo.xml", tmp);
+ if (!g_file_test (fn, G_FILE_TEST_EXISTS)) {
+ g_free (fn);
+ fn = g_strdup_printf ("/usr/share/metainfo/%s.metainfo.xml", tmp);
+ }
break;
default:
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]