diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-26 00:12:16 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-26 00:12:16 +0100 |
commit | 6e56fea1a36cda1117c4e557da5149166070bf91 (patch) | |
tree | a4758308f5347cddc576bb439ab972d995a1ad87 /src/backend/setBranch.py | |
parent | c7edab17a1b130b88010b26f1789da0569291676 (diff) |
move : portageRemote -> gentooRemote
Diffstat (limited to 'src/backend/setBranch.py')
-rw-r--r-- | src/backend/setBranch.py | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/backend/setBranch.py b/src/backend/setBranch.py index 0dac54f..2633dd9 100644 --- a/src/backend/setBranch.py +++ b/src/backend/setBranch.py @@ -11,7 +11,7 @@ import sisyphus.setJobs import sisyphus.setProfile def getBranchRemote(branch,remote): - portageRemote = [] + gentooRemote = [] redcoreRemote = [] portageConfigRemote = [] if "master" in branch: @@ -40,29 +40,29 @@ def getBranchRemote(branch,remote): "Error: Invalid branch" + " " + "'" + str(branch) + "'" +" " + "(options : master, next)" ) - portageRemote = [remote, sisyphus.getFilesystem.gentooRepo] + gentooRemote = [remote, sisyphus.getFilesystem.gentooRepo] redcoreRemote = [remote, sisyphus.getFilesystem.redcoreRepo] portageConfigRemote = [remote, sisyphus.getFilesystem.portageConfigRepo] - return portageRemote,redcoreRemote,portageConfigRemote + return gentooRemote,redcoreRemote,portageConfigRemote @animation.wait('injecting Gentoo Linux portage tree') -def injectStage1(branch,remote): - portageRemote,redcoreRemote,portageConfigRemote = getBranchRemote(branch,remote) +def injectGentooRepo(branch,remote): + gentooRemote,redcoreRemote,portageConfigRemote = getBranchRemote(branch,remote) if not os.path.isdir(os.path.join(sisyphus.getFilesystem.gentooRepoDir, '.git')): - git.Repo.clone_from("/".join(portageRemote), sisyphus.getFilesystem.gentooRepoDir, depth=1, branch=branch) + git.Repo.clone_from("/".join(gentooRemote), sisyphus.getFilesystem.gentooRepoDir, depth=1, branch=branch) @animation.wait('injecting Redcore Linux ebuild overlay') -def injectStage2(branch,remote): - portageRemote,redcoreRemote,portageConfigRemote = getBranchRemote(branch,remote) +def injectRedcoreRepo(branch,remote): + gentooRemote,redcoreRemote,portageConfigRemote = getBranchRemote(branch,remote) if not os.path.isdir(os.path.join(sisyphus.getFilesystem.redcoreRepoDir, '.git')): git.Repo.clone_from("/".join(redcoreRemote), sisyphus.getFilesystem.redcoreRepoDir, depth=1, branch=branch) @animation.wait('injecting Redcore Linux portage config') -def injectStage3(branch,remote): - portageRemote,redcoreRemote,portageConfigRemote = getBranchRemote(branch,remote) +def injectPortageConfigRepo(branch,remote): + gentooRemote,redcoreRemote,portageConfigRemote = getBranchRemote(branch,remote) if not os.path.isdir(os.path.join(sisyphus.getFilesystem.portageConfigDir, '.git')): git.Repo.clone_from("/".join(portageConfigRemote), sisyphus.getFilesystem.portageConfigDir, depth=1, branch=branch) @@ -84,9 +84,9 @@ def start(branch,remote): if sisyphus.checkEnvironment.root(): sisyphus.purgeEnvironment.branch() sisyphus.purgeEnvironment.metadata() - injectStage1(branch,remote) - injectStage2(branch,remote) - injectStage3(branch,remote) + injectGentooRepo(branch,remote) + injectRedcoreRepo(branch,remote) + injectPortageConfigRepo(branch,remote) sisyphus.setJobs.start() sisyphus.setProfile.start() giveWarning(branch,remote) |