@@ -80,9 +80,6 @@ gs_plugin_ultramarine_pkgdb_collections_init (GsPluginUltramarinePkgdbCollection
8080 self -> distros = g_ptr_array_new_with_free_func ((GDestroyNotify ) _pkgdb_item_free );
8181 self -> pending_refresh_tasks = NULL ;
8282 self -> settings = g_settings_new ("org.gnome.software" );
83-
84- /* old name */
85- gs_plugin_add_rule (plugin , GS_PLUGIN_RULE_CONFLICTS , "fedora-distro-upgrades" );
8683}
8784
8885static void
@@ -320,6 +317,8 @@ static void
320317gs_plugin_ultramarine_pkgdb_collections_refresh_metadata_async (GsPlugin * plugin ,
321318 guint64 cache_age_secs ,
322319 GsPluginRefreshMetadataFlags flags ,
320+ GsPluginEventCallback event_callback ,
321+ void * event_user_data ,
323322 GCancellable * cancellable ,
324323 GAsyncReadyCallback callback ,
325324 gpointer user_data )
@@ -744,18 +743,21 @@ static void refine_cb (GObject *source_object,
744743 gpointer user_data );
745744
746745static void
747- gs_plugin_ultramarine_pkgdb_collections_refine_async (GsPlugin * plugin ,
748- GsAppList * list ,
749- GsPluginRefineFlags flags ,
750- GCancellable * cancellable ,
751- GAsyncReadyCallback callback ,
752- gpointer user_data )
746+ gs_plugin_ultramarine_pkgdb_collections_refine_async (GsPlugin * plugin ,
747+ GsAppList * list ,
748+ GsPluginRefineFlags job_flags ,
749+ GsPluginRefineRequireFlags require_flags ,
750+ GsPluginEventCallback event_callback ,
751+ void * event_user_data ,
752+ GCancellable * cancellable ,
753+ GAsyncReadyCallback callback ,
754+ gpointer user_data )
753755{
754756 GsPluginUltramarinePkgdbCollections * self = GS_PLUGIN_ULTRAMARINE_PKGDB_COLLECTIONS (plugin );
755757 g_autoptr (GTask ) task = NULL ;
756758 gboolean refine_needed = FALSE;
757759
758- task = gs_plugin_refine_data_new_task (plugin , list , flags , cancellable , callback , user_data );
760+ task = gs_plugin_refine_data_new_task (plugin , list , job_flags , require_flags , event_callback , event_user_data , cancellable , callback , user_data );
759761 g_task_set_source_tag (task , gs_plugin_ultramarine_pkgdb_collections_refine_async );
760762
761763 /* Check if any of the apps actually need to be refined by this plugin,
@@ -798,7 +800,7 @@ refine_cb (GObject *source_object,
798800
799801 for (guint i = 0 ; i < gs_app_list_length (data -> list ); i ++ ) {
800802 GsApp * app = gs_app_list_index (data -> list , i );
801- if (!refine_app (self , distros , app , data -> flags , cancellable , & local_error )) {
803+ if (!refine_app (self , distros , app , data -> require_flags , cancellable , & local_error )) {
802804 g_task_return_error (task , g_steal_pointer (& local_error ));
803805 return ;
804806 }
0 commit comments