You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
282 B

import re
import platform
def get_arch_machine():
return platform.machine()
def get_arch_gentoo(arch_machine):
arch = arch_machine.value
if re.search("i.86", arch):
return "x86"
else:
return {
"x86_64": "amd64"
}.get(arch,arch)