[gnome-software/gnome-3-26] Revert "packagekit: Implement repository enabling"
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-26] Revert "packagekit: Implement repository enabling"
- Date: Thu, 8 Feb 2018 11:52:08 +0000 (UTC)
commit 67b93f10430d295d77d97b44c444ba832f0cce22
Author: Kalev Lember <klember redhat com>
Date: Thu Feb 8 12:19:39 2018 +0100
Revert "packagekit: Implement repository enabling"
This broke installing rpmfusion-free-release package.
https://bugzilla.redhat.com/show_bug.cgi?id=1535172
This reverts commit 989fdc5bfb268b40c21484b5d5aa06a823389061.
plugins/packagekit/gs-plugin-packagekit.c | 37 +------------------------------
1 file changed, 1 insertion(+), 36 deletions(-)
---
diff --git a/plugins/packagekit/gs-plugin-packagekit.c b/plugins/packagekit/gs-plugin-packagekit.c
index 7f78a1c0..4f758af8 100644
--- a/plugins/packagekit/gs-plugin-packagekit.c
+++ b/plugins/packagekit/gs-plugin-packagekit.c
@@ -261,35 +261,6 @@ gs_plugin_app_source_enable (GsPlugin *plugin,
return TRUE;
}
-static gboolean
-gs_plugin_repo_enable (GsPlugin *plugin,
- GsApp *repo,
- GCancellable *cancellable,
- GError **error)
-{
- GsPluginData *priv = gs_plugin_get_data (plugin);
- ProgressData data;
- g_autoptr(PkResults) results = NULL;
-
- data.app = repo;
- data.plugin = plugin;
- data.ptask = NULL;
-
- /* do sync call */
- gs_plugin_status_update (plugin, repo, GS_PLUGIN_STATUS_WAITING);
- results = pk_client_repo_enable (PK_CLIENT (priv->task),
- gs_app_get_id (repo),
- TRUE,
- cancellable,
- gs_plugin_packagekit_progress_cb, &data,
- error);
- if (!gs_plugin_packagekit_results_valid (results, error)) {
- gs_utils_error_add_unique_id (error, repo);
- return FALSE;
- }
- return TRUE;
-}
-
gboolean
gs_plugin_app_install (GsPlugin *plugin,
GsApp *app,
@@ -316,13 +287,7 @@ gs_plugin_app_install (GsPlugin *plugin,
gs_plugin_get_name (plugin)) != 0)
return TRUE;
- /* enable repo */
- if (gs_app_get_kind (app) == AS_APP_KIND_SOURCE) {
- return gs_plugin_repo_enable (plugin, app,
- cancellable, error);
- }
-
- /* enable the repo where the unavailable app is coming from */
+ /* we enable the repo */
if (gs_app_get_state (app) == AS_APP_STATE_UNAVAILABLE) {
/* get everything up front we need */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]