summarylogtreecommitdiffstats
path: root/0006-Add-architecture-and-scheduler-maps.patch
blob: df3f27de2e0caca6485cc62250cead12271c2aa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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 593978491664423875e08c9168a2ab7db32f97dd..f817e472c1e2fac6f9d30356cf7e38f296e0d1c6 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__()