From 9e10eb58eb3fe94227094a22df39b3945a5a076c Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Thu, 12 Nov 2020 14:18:40 +0100 Subject: [PATCH] builder: keep order of requested architectures Preserve the order of architectures in the image requests inside the compose requests, i.e. don't transform 'arches' into a set, which has random order. It is not that anyone should really depend on it, but there is also no need to mess with the order, potentially making it harder for humans to match requested arches with compose request content and logs. --- plugins/builder/osbuild.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/builder/osbuild.py b/plugins/builder/osbuild.py index 3bab600..8fd06e1 100644 --- a/plugins/builder/osbuild.py +++ b/plugins/builder/osbuild.py @@ -318,8 +318,7 @@ class OSBuildImage(BaseTaskHandler): # Architectures tag_arches = self.arches_for_config(buildconfig) - arches = set(arches) - diff = arches - tag_arches + diff = set(arches) - tag_arches if diff: raise koji.BuildError("Unsupported architecture(s): " + str(diff))