diff options
author | Richard Hughes <richard@hughsie.com> | 2018-05-25 14:48:52 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2018-05-25 15:14:45 +0100 |
commit | b1cdc4d04875c3a93161266fc4b9737c157d152a (patch) | |
tree | cf3f5b215ff6c90971b08cb8c6a41eb8b29af585 /libappstream-builder/plugins/asb-plugin-desktop.c | |
parent | 9e185aac3540fb6b311cdc89c150f7d657abf113 (diff) | |
download | appstream-glib-b1cdc4d04875c3a93161266fc4b9737c157d152a.tar.gz |
trivial: Fix font generation regression in appstream-builder
Two problems here:
* Don't force an unknown icon to CACHED when reading from a desktop file
* Don't try to convert an icon to a CACHED icon when it's already CACHED.
Diffstat (limited to 'libappstream-builder/plugins/asb-plugin-desktop.c')
-rw-r--r-- | libappstream-builder/plugins/asb-plugin-desktop.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/libappstream-builder/plugins/asb-plugin-desktop.c b/libappstream-builder/plugins/asb-plugin-desktop.c index 02f5909..a6943c8 100644 --- a/libappstream-builder/plugins/asb-plugin-desktop.c +++ b/libappstream-builder/plugins/asb-plugin-desktop.c @@ -52,7 +52,6 @@ asb_plugin_desktop_refine (AsbPlugin *plugin, { AsAppParseFlags parse_flags = AS_APP_PARSE_FLAG_USE_HEURISTICS | AS_APP_PARSE_FLAG_ALLOW_VETO; - GPtrArray *icons; g_autoptr(AsApp) desktop_app = NULL; g_autoptr(GdkPixbuf) pixbuf = NULL; @@ -65,14 +64,6 @@ asb_plugin_desktop_refine (AsbPlugin *plugin, if (!as_app_parse_file (desktop_app, filename, parse_flags, error)) return FALSE; - /* convert any UNKNOWN icons to CACHED */ - icons = as_app_get_icons (AS_APP (desktop_app)); - for (guint i = 0; i < icons->len; i++) { - AsIcon *icon = g_ptr_array_index (icons, i); - if (as_icon_get_kind (icon) == AS_ICON_KIND_UNKNOWN) - as_icon_set_kind (icon, AS_ICON_KIND_CACHED); - } - /* copy all metadata */ as_app_subsume_full (AS_APP (app), desktop_app, AS_APP_SUBSUME_FLAG_NO_OVERWRITE | |