Blame SOURCES/4.patch

df59b1
From 3d7519f2ac9e9f6e0978bc0cfebee6fa56190480 Mon Sep 17 00:00:00 2001
df59b1
From: Pavla Kratochvilova <pkratoch@redhat.com>
df59b1
Date: Wed, 20 Mar 2019 18:45:16 +0100
df59b1
Subject: [PATCH] Generate repofile for any architecture if "ALL" is specified
df59b1
 (RhBug:1645318)
df59b1
df59b1
The "arches" array can contain special value "ALL" and in that case any
df59b1
architecture should be accepted.
df59b1
df59b1
https://bugzilla.redhat.com/show_bug.cgi?id=1645318
df59b1
---
df59b1
 rhsm/rhsm-utils.c | 3 ++-
df59b1
 1 file changed, 2 insertions(+), 1 deletion(-)
df59b1
df59b1
diff --git a/rhsm/rhsm-utils.c b/rhsm/rhsm-utils.c
df59b1
index 7b6a26b..0c8df57 100644
df59b1
--- a/rhsm/rhsm-utils.c
df59b1
+++ b/rhsm/rhsm-utils.c
df59b1
@@ -230,7 +230,8 @@ rhsm_utils_yum_repo_from_context (RHSMContext *ctx)
df59b1
           if (json_object_has_member (repo, "arches"))
df59b1
             {
df59b1
               JsonArray *arr = json_object_get_array_member (repo, "arches");
df59b1
-              if (!rhsm_json_array_contains_string (arr, ctx_arch))
df59b1
+              if (!rhsm_json_array_contains_string (arr, ctx_arch)
df59b1
+                && !rhsm_json_array_contains_string (arr, "ALL"))
df59b1
                 continue;
df59b1
             }
df59b1