[gnome-software/wip/install-queue: 3/4] packagekit: Allow install of apps in the "queued for install" state




commit d9e28b8cb59c805f2df8954637f2056467ff1be3
Author: Milan Crha <mcrha redhat com>
Date:   Wed Aug 10 13:41:46 2022 +0200

    packagekit: Allow install of apps in the "queued for install" state
    
    Treat the "queued for install" state the same as if "available/updatable"
    state is set. Without that trying to install anything using PackageKit
    plugin leads to an "Unsupported" error.

 plugins/packagekit/gs-plugin-packagekit.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/plugins/packagekit/gs-plugin-packagekit.c b/plugins/packagekit/gs-plugin-packagekit.c
index 58d627276..85f941648 100644
--- a/plugins/packagekit/gs-plugin-packagekit.c
+++ b/plugins/packagekit/gs-plugin-packagekit.c
@@ -519,6 +519,7 @@ gs_plugin_app_install (GsPlugin *plugin,
        switch (gs_app_get_state (app)) {
        case GS_APP_STATE_AVAILABLE:
        case GS_APP_STATE_UPDATABLE:
+       case GS_APP_STATE_QUEUED_FOR_INSTALL:
                source_ids = gs_app_get_source_ids (app);
                if (source_ids->len == 0) {
                        g_set_error_literal (error,


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