From 06423ccbe93e73f52b054d8f80107ba73503f26c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 9 Mar 2023 20:41:00 +0000 Subject: remoteGithub -> rmt_gh_addr; remoteGitlab -> rmt_gl_addr; remotePagure -> rmt_pg_addr --- src/backend/getfs.py | 6 +++--- src/backend/setbranch.py | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src/backend') diff --git a/src/backend/getfs.py b/src/backend/getfs.py index f852cf2..77e0b2d 100644 --- a/src/backend/getfs.py +++ b/src/backend/getfs.py @@ -2,9 +2,9 @@ import platform -remoteGithub = 'https://github.com/redcorelinux' -remoteGitlab = 'https://gitlab.com/redcore' -remotePagure = 'https://pagure.io/redcore' +rmt_gh_addr = 'https://github.com/redcorelinux' +rmt_gl_addr = 'https://gitlab.com/redcore' +rmt_pg_addr = 'https://pagure.io/redcore' g_repo = 'portage.git' r_repo = 'redcore-desktop.git' diff --git a/src/backend/setbranch.py b/src/backend/setbranch.py index 5393484..346c054 100644 --- a/src/backend/setbranch.py +++ b/src/backend/setbranch.py @@ -18,18 +18,18 @@ def getBranchRemote(branch, remote): portageConfigRemote = [] if "master" in branch: if "github" in remote: - remote = sisyphus.getfs.remoteGithub + remote = sisyphus.getfs.rmt_gh_addr elif "gitlab" in remote: - remote = sisyphus.getfs.remoteGitlab + remote = sisyphus.getfs.rmt_gl_addr elif "pagure" in remote: - remote = sisyphus.getfs.remotePagure + remote = sisyphus.getfs.rmt_pg_addr elif "next" in branch: if "github" in remote: - remote = sisyphus.getfs.remoteGithub + remote = sisyphus.getfs.rmt_gh_addr elif "gitlab" in remote: - remote = sisyphus.getfs.remoteGitlab + remote = sisyphus.getfs.rmt_gl_addr elif "pagure" in remote: - remote = sisyphus.getfs.remotePagure + remote = sisyphus.getfs.rmt_pg_addr gentooRemote = [remote, sisyphus.getfs.g_repo] redcoreRemote = [remote, sisyphus.getfs.r_repo] -- cgit v1.2.3