diff options
Diffstat (limited to '0006-Add-architecture-and-scheduler-maps.patch')
-rw-r--r-- | 0006-Add-architecture-and-scheduler-maps.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/0006-Add-architecture-and-scheduler-maps.patch b/0006-Add-architecture-and-scheduler-maps.patch new file mode 100644 index 000000000000..e38914d086bb --- /dev/null +++ b/0006-Add-architecture-and-scheduler-maps.patch @@ -0,0 +1,29 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Marko Lemmetty <marko.lemmetty@jollamobile.com> +Date: Fri, 15 May 2020 15:16:37 +0300 +Subject: [PATCH] Add architecture and scheduler maps + +Makes preferring local packages with armv8el and i486 OBS schedulers +work. These mappings armv7hl/armv7tnhl -> armv8el and i486 -> +i586/i686 only affect the "get-preferred-packages" evaluation that is +used when the -p or --prefer-pkgs option is used with the osc build +command. +--- + osc/util/packagequery.py | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/osc/util/packagequery.py b/osc/util/packagequery.py +index 39356f5e6840d186f67dd52e10c86913ae8e60a5..df4f92bbe839ee3e954a29697152adfbe1c97ae7 100644 +--- a/osc/util/packagequery.py ++++ b/osc/util/packagequery.py +@@ -21,6 +21,10 @@ class PackageQueries(dict): + # map debian and rpm arches to common obs arches + architectureMap = {'i386': ['i586', 'i686'], 'amd64': ['x86_64'], 'ppc64el': ['ppc64le'], 'armv6hl': ['armv6l'], 'armv7hl': ['armv7l']} + ++ # map rpm arches to mer obs scheduler arches ++ architectureMap.update({'armv7hl': ['armv8el'], 'armv7tnhl': ['armv8el'], ++ 'i486': ['i586', 'i686']}) ++ + def __init__(self, wanted_architecture): + self.wanted_architecture = wanted_architecture + super().__init__() |