[gnome-software/mwleeds/hardcoded-pwa-list] wip
- From: Phaedrus Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/mwleeds/hardcoded-pwa-list] wip
- Date: Thu, 10 Mar 2022 19:11:03 +0000 (UTC)
commit a7a0cf72a5461ee44304571feea8bd94ef3ff129
Author: Phaedrus Leeds <mwleeds protonmail com>
Date: Thu Mar 10 11:10:58 2022 -0800
wip
plugins/core/gs-plugin-appstream.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/plugins/core/gs-plugin-appstream.c b/plugins/core/gs-plugin-appstream.c
index 08343322e..13cfd4d63 100644
--- a/plugins/core/gs-plugin-appstream.c
+++ b/plugins/core/gs-plugin-appstream.c
@@ -720,7 +720,7 @@ gs_plugin_appstream_check_silo (GsPluginAppstream *self,
cancellable, error))
return FALSE;
}
- if (!gs_plugin_appstream_load_desktop (self, builder,
+ /*if (!gs_plugin_appstream_load_desktop (self, builder,
DATADIR "/applications",
cancellable, error)) {
return FALSE;
@@ -730,7 +730,7 @@ gs_plugin_appstream_check_silo (GsPluginAppstream *self,
"/usr/share/applications",
cancellable, error)) {
return FALSE;
- }
+ }*/
}
/* regenerate with each minor release */
@@ -1023,8 +1023,11 @@ gs_plugin_refine_from_id (GsPluginAppstream *self,
}
xb_string_append_union (xpath, "component/id[text()='%s']/..", id);
g_debug ("Querying xpath string: %s", xpath->str);
- g_autofree char *silo_str = xb_silo_to_string (self->silo);
+ g_autoptr(XbNode) n = xb_silo_query_first (self->silo, "components", 0, NULL);
+ if (n) {
+ g_autofree char *silo_str = xb_node_export (n, XB_NODE_EXPORT_FLAG_FORMAT_MULTILINE |
XB_NODE_EXPORT_FLAG_FORMAT_INDENT, NULL);
g_debug ("Silo: %s\n", silo_str);
+ }
components = xb_silo_query (self->silo, xpath->str, 0, &error_local);
if (components == NULL) {
if (g_error_matches (error_local, G_IO_ERROR, G_IO_ERROR_NOT_FOUND))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]