From 206c993e45c39e60eceae1f66c69d39903ab9266 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 30 Oct 2022 20:02:58 +0000 Subject: space functions a bit --- src/backend/setbranch.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/backend/setbranch.py') diff --git a/src/backend/setbranch.py b/src/backend/setbranch.py index 100d271..b1f42d3 100644 --- a/src/backend/setbranch.py +++ b/src/backend/setbranch.py @@ -10,6 +10,7 @@ import sisyphus.purgeenv import sisyphus.setjobs import sisyphus.setprofile + def getBranchRemote(branch,remote): gentooRemote = [] redcoreRemote = [] @@ -46,6 +47,7 @@ def getBranchRemote(branch,remote): return gentooRemote,redcoreRemote,portageConfigRemote + @animation.wait('injecting Gentoo Linux portage tree') def injectGentooRepo(branch,remote): gentooRemote,redcoreRemote,portageConfigRemote = getBranchRemote(branch,remote) @@ -53,6 +55,7 @@ def injectGentooRepo(branch,remote): if not os.path.isdir(os.path.join(sisyphus.getfs.gentooRepoDir, '.git')): git.Repo.clone_from("/".join(gentooRemote), sisyphus.getfs.gentooRepoDir, depth=1, branch=branch) + @animation.wait('injecting Redcore Linux ebuild overlay') def injectRedcoreRepo(branch,remote): gentooRemote,redcoreRemote,portageConfigRemote = getBranchRemote(branch,remote) @@ -60,6 +63,7 @@ def injectRedcoreRepo(branch,remote): if not os.path.isdir(os.path.join(sisyphus.getfs.redcoreRepoDir, '.git')): git.Repo.clone_from("/".join(redcoreRemote), sisyphus.getfs.redcoreRepoDir, depth=1, branch=branch) + @animation.wait('injecting Redcore Linux portage config') def injectPortageConfigRepo(branch,remote): gentooRemote,redcoreRemote,portageConfigRemote = getBranchRemote(branch,remote) @@ -67,6 +71,7 @@ def injectPortageConfigRepo(branch,remote): if not os.path.isdir(os.path.join(sisyphus.getfs.portageConfigDir, '.git')): git.Repo.clone_from("/".join(portageConfigRemote), sisyphus.getfs.portageConfigDir, depth=1, branch=branch) + def giveWarning(branch,remote): if "master" in branch: print("\nThe switch to branch" + " " + "'" + branch + "'" + " " + "from remote" + " " + "'" + remote + "'" + " " + "is now complete") @@ -79,6 +84,7 @@ def giveWarning(branch,remote): print("Hint : Use the even numbers (2,4,6,8) from 'sisyphus mirror list'") print("Examples : 'sisyphus mirror set 4' or 'sisyphus mirror set 8'\n") + def start(branch,remote): if sisyphus.checkenv.root(): sisyphus.purgeenv.branch() -- cgit v1.2.3