[gnome-software] packagekit: Work around a libpackagekit-glib bug



commit d0cafdde80ffe4769da8c8736bf0f86fa679d2fa
Author: Richard Hughes <richard hughsie com>
Date:   Tue Jul 11 09:48:53 2017 +0100

    packagekit: Work around a libpackagekit-glib bug
    
    This is when the transaction is never actually scheduled or run.

 plugins/packagekit/packagekit-common.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/packagekit/packagekit-common.c b/plugins/packagekit/packagekit-common.c
index b44d639..8295c98 100644
--- a/plugins/packagekit/packagekit-common.c
+++ b/plugins/packagekit/packagekit-common.c
@@ -113,6 +113,10 @@ gs_plugin_packagekit_error_convert (GError **error)
                case PK_CLIENT_ERROR_NOT_SUPPORTED:
                        error_tmp->code = GS_PLUGIN_ERROR_NOT_SUPPORTED;
                        break;
+               /* this is working around a bug in libpackagekit-glib */
+               case PK_ERROR_ENUM_TRANSACTION_CANCELLED:
+                       error_tmp->code = GS_PLUGIN_ERROR_CANCELLED;
+                       break;
                default:
                        error_tmp->code = GS_PLUGIN_ERROR_FAILED;
                        break;


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