Blob Blame History Raw
commit e215c12da9b74dbe85e2ca6555fd10b5b02778d5
Author: Pavla Kratochvilova <pkratoch@redhat.com>
Date:   Wed Mar 20 18:45:16 2019 +0100

    Generate repofile for any architecture if "ALL" is specified (RhBug:1645318)
    
    The "arches" array can contain special value "ALL" and in that case any
    architecture should be accepted.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1645318

diff --git a/rhsm/rhsm-utils.c b/rhsm/rhsm-utils.c
index 06b12fc..b52a2b8 100644
--- a/rhsm/rhsm-utils.c
+++ b/rhsm/rhsm-utils.c
@@ -230,7 +230,8 @@ rhsm_utils_yum_repo_from_context (RHSMContext *ctx)
           if (json_object_has_member (repo, "arches"))
             {
               JsonArray *arr = json_object_get_array_member (repo, "arches");
-              if (!rhsm_json_array_contains_string (arr, ctx_arch))
+              if (!rhsm_json_array_contains_string (arr, ctx_arch)
+                && !rhsm_json_array_contains_string (arr, "ALL"))
                 continue;
             }