[gnome-software/gnome-3-24] packagekit: Support /usr/share/metainfo for addons too



commit a0aa48e356fec70e1195941e01a182716ddaf220
Author: Richard Hughes <richard hughsie com>
Date:   Fri May 19 18:00:28 2017 +0100

    packagekit: Support /usr/share/metainfo for addons too

 plugins/packagekit/gs-plugin-packagekit-refine.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/packagekit/gs-plugin-packagekit-refine.c 
b/plugins/packagekit/gs-plugin-packagekit-refine.c
index a94f3b2..8489a52 100644
--- a/plugins/packagekit/gs-plugin-packagekit-refine.c
+++ b/plugins/packagekit/gs-plugin-packagekit-refine.c
@@ -878,6 +878,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]