Blame SOURCES/2.patch

aa22cd
From 1335a0a08399960128192651011c4a3ca6233b32 Mon Sep 17 00:00:00 2001
aa22cd
From: Daniel Mach <dmach@redhat.com>
aa22cd
Date: Tue, 13 Nov 2018 12:17:58 +0100
aa22cd
Subject: [PATCH] Enable repos when generating a .repo file based on
aa22cd
 entitlement certificate.
aa22cd
aa22cd
Resolves: rhbz#1638850
aa22cd
---
aa22cd
 rhsm/rhsm-utils.c | 9 ++++++++-
aa22cd
 1 file changed, 8 insertions(+), 1 deletion(-)
aa22cd
aa22cd
diff --git a/rhsm/rhsm-utils.c b/rhsm/rhsm-utils.c
aa22cd
index 7b6a26b..021d0d8 100644
aa22cd
--- a/rhsm/rhsm-utils.c
aa22cd
+++ b/rhsm/rhsm-utils.c
aa22cd
@@ -246,9 +246,16 @@ rhsm_utils_yum_repo_from_context (RHSMContext *ctx)
aa22cd
           const gchar *id = json_object_get_string_member (repo, "label");
aa22cd
           const gchar *name = json_object_get_string_member (repo, "name");
aa22cd
           const gchar *path = json_object_get_string_member (repo, "path");
aa22cd
-          gboolean enabled = FALSE;
aa22cd
+
aa22cd
+          /*
aa22cd
+           * The "enabled" option defaults to "true".
aa22cd
+           * If a content (repository) is enabled, the option is missing in the data,
aa22cd
+           * most likely to save limited space in the certificate.
aa22cd
+           */
aa22cd
+          gboolean enabled = TRUE;
aa22cd
           if (json_object_has_member (repo, "enabled"))
aa22cd
             enabled = json_object_get_boolean_member (repo, "enabled");
aa22cd
+
aa22cd
           if (id == NULL || name == NULL || path == NULL)
aa22cd
             continue; /* TODO: make some error reporting here */
aa22cd