[gnome-software/wip/rpm-ostree-install] rpm-ostree: Allow install of apps in the "queued for install" state




commit f554831e2dbc497d5fb28255e7be9df8f6ed76e8
Author: Milan Crha <mcrha redhat com>
Date:   Tue Aug 23 12:33:15 2022 +0200

    rpm-ostree: 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 rpm-ostree
    plugin leads to an "Unsupported" error.

 plugins/rpm-ostree/gs-plugin-rpm-ostree.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/plugins/rpm-ostree/gs-plugin-rpm-ostree.c b/plugins/rpm-ostree/gs-plugin-rpm-ostree.c
index ddf024432..a3b5eecd3 100644
--- a/plugins/rpm-ostree/gs-plugin-rpm-ostree.c
+++ b/plugins/rpm-ostree/gs-plugin-rpm-ostree.c
@@ -1668,6 +1668,7 @@ gs_plugin_app_install (GsPlugin *plugin,
 
        switch (gs_app_get_state (app)) {
        case GS_APP_STATE_AVAILABLE:
+       case GS_APP_STATE_QUEUED_FOR_INSTALL:
                if (gs_app_get_source_default (app) == NULL) {
                        g_set_error_literal (error,
                                             GS_PLUGIN_ERROR,


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