From 687968f9375def610d8730610dc48291346061a6 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 10 Jul 2021 13:53:33 +0100 Subject: sisyphus backend : arm64 specific bits --- src/backend/filesystem.py | 8 +++++++- src/backend/setprofile.py | 13 ++++++++++--- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/backend/filesystem.py b/src/backend/filesystem.py index cfbfa86..4934108 100644 --- a/src/backend/filesystem.py +++ b/src/backend/filesystem.py @@ -1,5 +1,7 @@ #!/usr/bin/python3 +import platform + remoteGitlab = 'https://gitlab.com/redcore' remotePagure = 'https://pagure.io/redcore' @@ -19,4 +21,8 @@ localPackagesCsv = '/var/lib/sisyphus/csv/localPackagesPre.csv' localDatabase = '/var/lib/sisyphus/db/sisyphus.db' -mirrorCfg = '/etc/sisyphus/mirrors.conf' +if platform.uname()[4] == 'x86_64': + mirrorCfg = '/etc/sisyphus/sisyphus-mirrors-amd64.conf' + +if platform.uname()[4] == 'aarch64': + mirrorCfg = '/etc/sisyphus/sisyphus-mirrors-arm64.conf' diff --git a/src/backend/setprofile.py b/src/backend/setprofile.py index a0b16ad..a5d6480 100644 --- a/src/backend/setprofile.py +++ b/src/backend/setprofile.py @@ -1,11 +1,18 @@ #!/usr/bin/python3 import animation +import platform import subprocess -@animation.wait('setting up hardened profile') +@animation.wait('setting up profile') def start(): - eselectExec = subprocess.Popen(['eselect', 'profile', 'set', 'default/linux/amd64/17.1/hardened']) - eselectExec.wait() + if platform.uname()[4] == 'x86_64': + eselectExec = subprocess.Popen(['eselect', 'profile', 'set', 'default/linux/amd64/17.1/hardened']) + eselectExec.wait() + + if platform.uname()[4] == 'aarch64': + eselectExec = subprocess.Popen(['eselect', 'profile', 'set', 'default/linux/arm64/17.0']) + eselectExec.wait() + envExec = subprocess.Popen(['env-update'], stdout=subprocess.DEVNULL) envExec.wait() -- cgit v1.2.3