bstinson / rpms / rpm-ostree

Forked from rpms/rpm-ostree 5 years ago
Clone

Blame SOURCES/0001-core-only-update-repos-enabled-for-packages.patch

9376d4
From f1437028cfdba73c09daf49cf41ab7e5e665dbea Mon Sep 17 00:00:00 2001
9376d4
From: Jonathan Lebon <jlebon@redhat.com>
9376d4
Date: Thu, 6 Jul 2017 11:21:18 -0700
9376d4
Subject: [PATCH] core: only update repos enabled for packages
9376d4
9376d4
We don't care about repos enabled only for METADATA. This works around
9376d4
an interesting libdnf behaviour in which all repos in redhat.repo are
9376d4
enabled for metadata, even if disabled.
9376d4
9376d4
Downstream RHBZ: #1468302
9376d4
9376d4
Closes: #863
9376d4
Approved by: cgwalters
9376d4
---
9376d4
 src/libpriv/rpmostree-core.c | 2 +-
9376d4
 1 file changed, 1 insertion(+), 1 deletion(-)
9376d4
9376d4
diff --git a/src/libpriv/rpmostree-core.c b/src/libpriv/rpmostree-core.c
9376d4
index 22160884..8aef6617 100644
9376d4
--- a/src/libpriv/rpmostree-core.c
9376d4
+++ b/src/libpriv/rpmostree-core.c
9376d4
@@ -925,7 +925,7 @@ rpmostree_context_download_metadata (RpmOstreeContext *self,
9376d4
 {
9376d4
   g_assert (!self->empty);
9376d4
 
9376d4
-  g_autoptr(GPtrArray) rpmmd_repos = get_enabled_rpmmd_repos (self->hifctx, DNF_REPO_ENABLED_METADATA);
9376d4
+  g_autoptr(GPtrArray) rpmmd_repos = get_enabled_rpmmd_repos (self->hifctx, DNF_REPO_ENABLED_PACKAGES);
9376d4
 
9376d4
   g_print ("Enabled rpm-md repositories:");
9376d4
   for (guint i = 0; i < rpmmd_repos->len; i++)
9376d4
-- 
9376d4
2.13.2
9376d4