diff options
author | Richard Hughes <richard@hughsie.com> | 2015-09-16 16:36:08 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2015-09-16 17:59:30 +0100 |
commit | 8c58e47632f1e3da2723e57b2cb1bf775da37234 (patch) | |
tree | 0d64d33a98ef0c393a8058a267e911ac7c497bc2 /libappstream-builder/asb-plugin-loader.c | |
parent | d707ebe7e684a7f8aae6c65be390d02cb0740077 (diff) | |
download | appstream-glib-8c58e47632f1e3da2723e57b2cb1bf775da37234.tar.gz |
Require AppData files to be present in the AppStream metadata
This changes the default processing element from the desktop file to an AppData
(or MetaInfo) file, and the other sources now refine the base object rather
than the other way around. This matches what Debian is doing.
Diffstat (limited to 'libappstream-builder/asb-plugin-loader.c')
-rw-r--r-- | libappstream-builder/asb-plugin-loader.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/libappstream-builder/asb-plugin-loader.c b/libappstream-builder/asb-plugin-loader.c index ee6de00..ed3c32c 100644 --- a/libappstream-builder/asb-plugin-loader.c +++ b/libappstream-builder/asb-plugin-loader.c @@ -186,18 +186,11 @@ asb_plugin_loader_process_app (AsbPluginLoader *plugin_loader, "Running asb_plugin_process_app() from %s", plugin->name); if (!plugin_func (plugin, pkg, app, tmpdir, &error_local)) { - if (g_error_matches (error_local, - ASB_PLUGIN_ERROR, - ASB_PLUGIN_ERROR_IGNORE)) { - asb_package_log (pkg, - ASB_PACKAGE_LOG_LEVEL_WARNING, - "Ignoring: %s", - error_local->message); - g_clear_error (&error_local); - } else { - g_propagate_error (error, error_local); - return FALSE; - } + asb_package_log (pkg, + ASB_PACKAGE_LOG_LEVEL_WARNING, + "Ignoring: %s", + error_local->message); + g_clear_error (&error_local); } } return TRUE; |