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