[packagekit] [PATCH 1/2] trivial: set backend role after resetting it
Jonathan Conder
j at skurvy.no-ip.org
Thu May 6 04:32:58 PDT 2010
Fixes fd#27527 for good
Signed-off-by: Jonathan Conder <j at skurvy.no-ip.org>
---
src/pk-transaction.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/pk-transaction.c b/src/pk-transaction.c
index bd60170..ddfa21c 100644
--- a/src/pk-transaction.c
+++ b/src/pk-transaction.c
@@ -1653,10 +1653,6 @@ pk_transaction_set_running (PkTransaction *transaction)
/* set the frontend socket if it exists */
pk_backend_set_frontend_socket (priv->backend, priv->frontend_socket);
- /* set the role */
- pk_backend_set_role (priv->backend, priv->role);
- egg_debug ("setting role for %s to %s", priv->tid, pk_role_enum_to_string (priv->role));
-
/* set proxy */
ret = pk_transaction_set_session_state (transaction, &error);
if (!ret) {
@@ -1686,6 +1682,10 @@ pk_transaction_set_running (PkTransaction *transaction)
/* might have to reset again if we used the backend */
pk_backend_reset (priv->backend);
+ /* set the role */
+ pk_backend_set_role (priv->backend, priv->role);
+ egg_debug ("setting role for %s to %s", priv->tid, pk_role_enum_to_string (priv->role));
+
/* connect up the signals */
priv->signal_allow_cancel =
g_signal_connect (priv->backend, "allow-cancel",
--
1.7.1
More information about the PackageKit
mailing list