Commit f62cf3d7 authored by Kalev Lember's avatar Kalev Lember

Fix re-refine after install/remove

Make sure that PackageKit-managed apps get re-refined after each
install/remove to pick up new source ids.
parent 72790827
......@@ -3261,9 +3261,15 @@ gs_plugin_loader_process_thread_cb (GTask *task,
}
/* pick up new source id */
if (add_to_pending_array) {
switch (action) {
case GS_PLUGIN_ACTION_INSTALL:
case GS_PLUGIN_ACTION_REMOVE:
gs_plugin_job_add_refine_flags (helper->plugin_job,
GS_PLUGIN_REFINE_FLAGS_REQUIRE_ORIGIN);
GS_PLUGIN_REFINE_FLAGS_REQUIRE_ORIGIN |
GS_PLUGIN_REFINE_FLAGS_REQUIRE_SETUP_ACTION);
break;
default:
break;
}
/* run refine() on each one if required */
......
......@@ -533,6 +533,8 @@ gs_plugin_refine_requires_package_id (GsApp *app, GsPluginRefineFlags flags)
return TRUE;
if ((flags & GS_PLUGIN_REFINE_FLAGS_REQUIRE_PROVENANCE) > 0)
return TRUE;
if ((flags & GS_PLUGIN_REFINE_FLAGS_REQUIRE_SETUP_ACTION) > 0)
return TRUE;
return FALSE;
}
......
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