From fc46610f316eb45b017d8f054132f01d4c7c37d7 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 18 Dec 2022 19:58:09 +0000 Subject: add github as a remote option --- src/backend/getfs.py | 1 + src/backend/setbranch.py | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src/backend') diff --git a/src/backend/getfs.py b/src/backend/getfs.py index 5186db4..72b058b 100644 --- a/src/backend/getfs.py +++ b/src/backend/getfs.py @@ -2,6 +2,7 @@ import platform +remoteGithub = 'https://github.com/redcorelinux' remoteGitlab = 'https://gitlab.com/redcore' remotePagure = 'https://pagure.io/redcore' diff --git a/src/backend/setbranch.py b/src/backend/setbranch.py index 0527ad4..0b013a3 100644 --- a/src/backend/setbranch.py +++ b/src/backend/setbranch.py @@ -17,12 +17,16 @@ def getBranchRemote(branch, remote): redcoreRemote = [] portageConfigRemote = [] if "master" in branch: - if "gitlab" in remote: + if "github" in remote: + remote = sisyphus.getfs.remoteGithub + elif "gitlab" in remote: remote = sisyphus.getfs.remoteGitlab elif "pagure" in remote: remote = sisyphus.getfs.remotePagure elif "next" in branch: - if "gitlab" in remote: + if github in remote: + remote = sisyphus.getfs.remoteGithub + elif "gitlab" in remote: remote = sisyphus.getfs.remoteGitlab elif "pagure" in remote: remote = sisyphus.getfs.remotePagure -- cgit v1.2.3