Commit 08ce4709 authored by Giovanni Campagna's avatar Giovanni Campagna
Browse files

appstream: mark applications as available when no better state is set

We coming from the hardcoded plugins, instead of packagekit, we
don't know the installed state, so assume the app is available.
Also, increase the priority, so appstream is run after datadir-apps
(which also sets the installed state).

https://bugzilla.gnome.org/show_bug.cgi?id=707185
parent 067af38f
......@@ -474,7 +474,7 @@ gs_plugin_initialize (GsPlugin *plugin)
gdouble
gs_plugin_get_priority (GsPlugin *plugin)
{
return 1.0f;
return 2.0f;
}
/**
......@@ -572,6 +572,9 @@ gs_plugin_refine_item (GsPlugin *plugin,
/* set package name */
if (item->pkgname != NULL && gs_app_get_metadata_item (app, "package-name") == NULL)
gs_app_set_metadata (app, "package-name", item->pkgname);
if (gs_app_get_state (app) == GS_APP_STATE_UNKNOWN)
gs_app_set_state (app, GS_APP_STATE_AVAILABLE);
out:
g_free (icon_path);
if (pixbuf != NULL)
......
Supports Markdown
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