[gnome-software: 19/38] packagekit: Stop using GS_PLUGIN_ACTION_REFRESH




commit 0d4956f24d41ce1889748c7babbf0bbc692015c7
Author: Philip Withnall <pwithnall endlessos org>
Date:   Sun Feb 20 17:07:18 2022 +0000

    packagekit: Stop using GS_PLUGIN_ACTION_REFRESH
    
    Its removal doesn’t affect behaviour here, as it’s only used by
    `GsPackagekitTask` to ask questions during install, download and update
    operations.
    
    This code will likely need refactoring further in future to make this
    neater.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>
    
    Helps: #1472

 plugins/packagekit/gs-plugin-packagekit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/packagekit/gs-plugin-packagekit.c b/plugins/packagekit/gs-plugin-packagekit.c
index 8e5ea3a2e..6560f6aac 100644
--- a/plugins/packagekit/gs-plugin-packagekit.c
+++ b/plugins/packagekit/gs-plugin-packagekit.c
@@ -3605,7 +3605,7 @@ gs_plugin_packagekit_refresh_metadata_async (GsPlugin                     *plugi
 
        g_mutex_lock (&self->task_mutex_refresh);
        pk_client_set_background (PK_CLIENT (self->task_refresh), !interactive);
-       gs_packagekit_task_setup (GS_PACKAGEKIT_TASK (self->task_refresh), GS_PLUGIN_ACTION_REFRESH, 
interactive);
+       gs_packagekit_task_setup (GS_PACKAGEKIT_TASK (self->task_refresh), GS_PLUGIN_ACTION_UNKNOWN, 
interactive);
        pk_client_set_cache_age (PK_CLIENT (self->task_refresh), cache_age_secs);
 
        /* refresh the metadata */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]