summaryrefslogtreecommitdiff
path: root/libappstream-builder/asb-plugin-loader.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2015-09-16 16:36:08 +0100
committerRichard Hughes <richard@hughsie.com>2015-09-16 17:59:30 +0100
commit8c58e47632f1e3da2723e57b2cb1bf775da37234 (patch)
tree0d64d33a98ef0c393a8058a267e911ac7c497bc2 /libappstream-builder/asb-plugin-loader.c
parentd707ebe7e684a7f8aae6c65be390d02cb0740077 (diff)
downloadappstream-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.c17
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;