summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeal Gompa <ngompa13@gmail.com>2020-01-07 11:44:17 -0500
committerRichard Hughes <richard@hughsie.com>2020-01-08 08:30:35 +0000
commitae6e5a3e3d4bffc46c867475d0638e24be0a5087 (patch)
treeafb042fa96d44767ef66bfc12fcad9f789990fa7
parentba4b857b1f3262fbfdf8ee5899dd82f9dc44c1fd (diff)
Revert "dnf: Reset libgit2 module when upgrading to F31"
This change has the potential to break other distributions using the DNF backend, and exclusively applies to Fedora. This is better maintained as a downstream-only patch in Fedora. This reverts commit 6dc4d503cfab4c0270924ddf8acfefb4f06d47fa.
-rw-r--r--backends/dnf/pk-backend-dnf.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/backends/dnf/pk-backend-dnf.c b/backends/dnf/pk-backend-dnf.c
index 0ba32dc47..779896c2d 100644
--- a/backends/dnf/pk-backend-dnf.c
+++ b/backends/dnf/pk-backend-dnf.c
@@ -3435,17 +3435,6 @@ pk_backend_upgrade_system_thread (PkBackendJob *job, GVariant *params, gpointer
/* set the installonly limit one higher than usual to avoid removing any kernels during system upgrades */
dnf_sack_set_installonly_limit (sack, dnf_context_get_installonly_limit (job_data->context) + 1);
- /* reset libgit2 module when upgrading to F31: https://bugzilla.redhat.com/show_bug.cgi?id=1762751 */
- if (g_strcmp0 (release_ver, "31") == 0) {
- const gchar *reset_modules[] = { "libgit2", NULL };
- g_autoptr(GError) error_local = NULL;
-
- g_debug ("resetting libgit2 module");
- if (!dnf_context_reset_modules (job_data->context, sack, reset_modules, &error_local)) {
- g_warning ("failed to reset libgit2 module: %s", error_local->message);
- }
- }
-
/* done */
if (!dnf_state_done (job_data->state, &error)) {
pk_backend_job_error_code (job, error->code, "%s", error->message);