static void pk_transaction_refresh_cache ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {
 gboolean ret ;
 gboolean force ;
 g_autoptr ( GError ) error = NULL ;
 g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;
 g_return_if_fail ( transaction -> priv -> tid != NULL ) ;
 g_variant_get ( params , "(b)" , & force ) ;
 g_debug ( "RefreshCache method called: %i" , force ) ;
 if ( ! pk_backend_is_implemented ( transaction -> priv -> backend , PK_ROLE_ENUM_REFRESH_CACHE ) ) {
 g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NOT_SUPPORTED , "RefreshCache not supported by backend" ) ;
 pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;
 goto out ;
 }
 transaction -> priv -> cached_force = force ;
 pk_transaction_set_role ( transaction , PK_ROLE_ENUM_REFRESH_CACHE ) ;
 ret = pk_transaction_obtain_authorization ( transaction , PK_ROLE_ENUM_REFRESH_CACHE , & error ) ;
 if ( ! ret ) {
 pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;
 goto out ;
 }
 out : pk_transaction_dbus_return ( context , error ) ;
 }
static void pk_transaction_refresh_cache ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {
 gboolean ret ;
 gboolean force ;
 g_autoptr ( GError ) error = NULL ;
 g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;
 g_return_if_fail ( transaction -> priv -> tid != NULL ) ;
 g_variant_get ( params , "(b)" , & force ) ;
 g_debug ( "RefreshCache method called: %i" , force ) ;
 if ( ! pk_backend_is_implemented ( transaction -> priv -> backend , PK_ROLE_ENUM_REFRESH_CACHE ) ) {
 g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NOT_SUPPORTED , "RefreshCache not supported by backend" ) ;
 pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;
 goto out ;
 }
 transaction -> priv -> cached_force = force ;
 pk_transaction_set_role ( transaction , PK_ROLE_ENUM_REFRESH_CACHE ) ;
 ret = pk_transaction_obtain_authorization ( transaction , PK_ROLE_ENUM_REFRESH_CACHE , & error ) ;
 if ( ! ret ) {
 pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;
 goto out ;
 }
 out : pk_transaction_dbus_return ( context , error ) ;
 }