dnf/dnf-4.2.5-arm-default-arch.patch

23 lines
1.1 KiB
Diff

--- dnf-4.2.5/dnf/conf/config.py.orig 2019-07-14 19:47:18.855318185 +0200
+++ dnf-4.2.5/dnf/conf/config.py 2019-07-14 19:48:16.491705469 +0200
@@ -374,6 +374,8 @@
@arch.setter
def arch(self, val):
# :api
+ if val in ['armv7l','armv6l','armv5tl','armv5tel','armv5tejl']:
+ val = "arm"
if val is None:
self.substitutions.pop('arch', None)
--- dnf-4.2.5/dnf/rpm/__init__.py.orig 2019-07-14 19:43:35.349345247 +0200
+++ dnf-4.2.5/dnf/rpm/__init__.py 2019-07-14 19:44:12.447014782 +0200
@@ -83,7 +83,7 @@
'aarch64': ('aarch64',),
'alpha': ('alpha', 'alphaev4', 'alphaev45', 'alphaev5', 'alphaev56',
'alphaev6', 'alphaev67', 'alphaev68', 'alphaev7', 'alphapca56'),
- 'arm': ('armv5tejl', 'armv5tel', 'armv5tl', 'armv6l', 'armv7l', 'armv8l'),
+ 'arm': ('arm','armv5tejl', 'armv5tel', 'armv5tl', 'armv6l', 'armv7l', 'armv8l'),
'armhfp': ('armv6hl', 'armv7hl', 'armv7hnl', 'armv8hl', 'armv8hnl', 'armv8hcnl'),
'i586': ('i386', 'athlon', 'geode', 'i386', 'i486', 'i586', 'i686'),
'ia64': ('ia64',),