[gnome-software] appstream: Add a few more search paths



commit 375aec1406f077b56d02c35dc28a3d8c2a6f1bb1
Author: Kalev Lember <klember redhat com>
Date:   Fri Feb 22 15:13:26 2019 +0100

    appstream: Add a few more search paths
    
    In addition to /var/lib/app-info/yaml that the previous commit added,
    look in the following directories as well, matching what appstream-glib
    does:
    
    /var/cache/app-info/xmls
    /var/cache/app-info/yaml
    /var/lib/app-info/xmls

 plugins/core/gs-plugin-appstream.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/plugins/core/gs-plugin-appstream.c b/plugins/core/gs-plugin-appstream.c
index c944733b..b035d080 100644
--- a/plugins/core/gs-plugin-appstream.c
+++ b/plugins/core/gs-plugin-appstream.c
@@ -468,12 +468,18 @@ gs_plugin_appstream_check_silo (GsPlugin *plugin,
                                 g_build_filename ("/usr/share", "app-info", "xmls", NULL));
                g_ptr_array_add (parent_appstream,
                                 g_build_filename ("/usr/share", "app-info", "yaml", NULL));
-               g_ptr_array_add (parent_appstream,
-                                g_build_filename ("/var/lib", "app-info", "yaml", NULL));
                g_ptr_array_add (parent_appdata,
                                 g_build_filename ("/usr/share", "appdata", NULL));
                g_ptr_array_add (parent_appdata,
                                 g_build_filename ("/usr/share", "metainfo", NULL));
+               g_ptr_array_add (parent_appstream,
+                                g_build_filename ("/var/cache", "app-info", "xmls", NULL));
+               g_ptr_array_add (parent_appstream,
+                                g_build_filename ("/var/cache", "app-info", "yaml", NULL));
+               g_ptr_array_add (parent_appstream,
+                                g_build_filename ("/var/lib", "app-info", "xmls", NULL));
+               g_ptr_array_add (parent_appstream,
+                                g_build_filename ("/var/lib", "app-info", "yaml", NULL));
 
                /* import all files */
                for (guint i = 0; i < parent_appstream->len; i++) {


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