Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Maintenance:62
PackageKit.openSUSE_12.1
7578d611-set-accept-eula-role.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 7578d611-set-accept-eula-role.diff of Package PackageKit.openSUSE_12.1
From 7578d6111c0b27a4760b1099e0647deb7e2cfe16 Mon Sep 17 00:00:00 2001 From: Daniel Nicoletti <dantti85-pk@yahoo.com.br> Date: Wed, 9 Nov 2011 17:11:27 -0200 Subject: [PATCH] packagekit: Set the right role on accept-eula --- src/pk-backend.c | 1 + src/pk-transaction.c | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/pk-backend.c b/src/pk-backend.c index 47c87d1..5629d33 100644 --- a/src/pk-backend.c +++ b/src/pk-backend.c @@ -2652,6 +2652,7 @@ pk_backend_accept_eula (PkBackend *backend, const gchar *eula_id) g_return_val_if_fail (PK_IS_BACKEND (backend), FALSE); g_return_val_if_fail (eula_id != NULL, FALSE); + pk_backend_set_role_internal (backend, PK_ROLE_ENUM_ACCEPT_EULA); g_debug ("eula_id %s", eula_id); present = g_hash_table_lookup (backend->priv->eulas, eula_id); diff --git a/src/pk-transaction.c b/src/pk-transaction.c index 77b6fd6..cfa935e 100644 --- a/src/pk-transaction.c +++ b/src/pk-transaction.c @@ -2763,6 +2763,7 @@ pk_transaction_accept_eula (PkTransaction *transaction, const gchar *eula_id, DB g_return_if_fail (PK_IS_TRANSACTION (transaction)); g_return_if_fail (transaction->priv->tid != NULL); + pk_transaction_set_role (transaction, PK_ROLE_ENUM_ACCEPT_EULA); /* check if the sender is the same */ ret = pk_transaction_verify_sender (transaction, context, &error); -- 1.6.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor