Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
salt.10418
return-the-expected-powerpc-os-arch-bsc-1117995...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File return-the-expected-powerpc-os-arch-bsc-1117995.patch of Package salt.10418
From 5c8e51b969306e6083becf2f965a755dc67cb4d8 Mon Sep 17 00:00:00 2001 From: Mihai Dinca <mdinca@suse.de> Date: Thu, 13 Dec 2018 12:17:35 +0100 Subject: [PATCH] Return the expected powerpc os arch (bsc#1117995) --- salt/utils/pkg/rpm.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/salt/utils/pkg/rpm.py b/salt/utils/pkg/rpm.py index a88e8440f6..ed6a1a24a4 100644 --- a/salt/utils/pkg/rpm.py +++ b/salt/utils/pkg/rpm.py @@ -54,8 +54,11 @@ def get_osarch(): stderr=subprocess.PIPE).communicate()[0] else: ret = ''.join(list(filter(None, platform.uname()[-2:]))[-1:]) - - return salt.utils.stringutils.to_str(ret).strip() or 'unknown' + ret = salt.utils.stringutils.to_str(ret).strip() or 'unknown' + ARCH_FIXES_MAPPING = { + "powerpc64le": "ppc64le" + } + return ARCH_FIXES_MAPPING.get(ret, ret) def check_32(arch, osarch=None): -- 2.20.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor