Commit 0295741b authored by Matthias Klumpp's avatar Matthias Klumpp

limba: Only return FALSE if we set an error as well

This prevents g-s from crashing on installations/removals if the Limba
plugin is enabled.
parent f990f0b1
......@@ -147,9 +147,9 @@ gs_plugin_app_remove (GsPlugin *plugin,
/* check if we can remove this application */
if (bundle == NULL)
return FALSE;
return TRUE;
if (as_bundle_get_kind (bundle) != AS_BUNDLE_KIND_LIMBA)
return FALSE;
return TRUE;
mgr = li_manager_new ();
......@@ -185,9 +185,9 @@ gs_plugin_app_install (GsPlugin *plugin,
/* check if we can install this application */
if (bundle == NULL)
return FALSE;
return TRUE;
if (as_bundle_get_kind (bundle) != AS_BUNDLE_KIND_LIMBA)
return FALSE;
return TRUE;
/* create new installer and select remote package */
inst = li_installer_new ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment