diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-03-11 05:32:19 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-03-11 05:32:19 +0000 |
commit | a9d87ee5bd0c98b6daae9ddf307c634da9c35551 (patch) | |
tree | 3ae25a65b1511d7a9368fa21b4779a6880a132b7 /src/backend/setbranch.py | |
parent | 4edf9a7f554f183ccc34b0e57e734a2cbd6f5b9d (diff) |
run autopep8 on the code
Diffstat (limited to 'src/backend/setbranch.py')
-rw-r--r-- | src/backend/setbranch.py | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/src/backend/setbranch.py b/src/backend/setbranch.py index c5e419a..5aa6a65 100644 --- a/src/backend/setbranch.py +++ b/src/backend/setbranch.py @@ -40,28 +40,25 @@ def get_brch_rmt(branch, remote): @animation.wait('injecting Gentoo Linux portage tree') def ins_g_repo(branch, remote): - g_rmt, r_rmt, p_cfg_rmt = get_brch_rmt( - branch, remote) + g_rmt, r_rmt, p_cfg_rmt = get_brch_rmt(branch, remote) if not os.path.isdir(os.path.join(sisyphus.getfs.g_src_dir, '.git')): - git.Repo.clone_from("/".join(g_rmt), - sisyphus.getfs.g_src_dir, depth=1, branch=branch) + git.Repo.clone_from( + "/".join(g_rmt), sisyphus.getfs.g_src_dir, depth=1, branch=branch) @animation.wait('injecting Redcore Linux ebuild overlay') def ins_r_repo(branch, remote): - g_rmt, r_rmt, p_cfg_rmt = get_brch_rmt( - branch, remote) + g_rmt, r_rmt, p_cfg_rmt = get_brch_rmt(branch, remote) if not os.path.isdir(os.path.join(sisyphus.getfs.r_src_dir, '.git')): - git.Repo.clone_from("/".join(r_rmt), - sisyphus.getfs.r_src_dir, depth=1, branch=branch) + git.Repo.clone_from( + "/".join(r_rmt), sisyphus.getfs.r_src_dir, depth=1, branch=branch) @animation.wait('injecting Redcore Linux portage config') def ins_p_cfg_repo(branch, remote): - g_rmt, r_rmt, p_cfg_rmt = get_brch_rmt( - branch, remote) + g_rmt, r_rmt, p_cfg_rmt = get_brch_rmt(branch, remote) if not os.path.isdir(os.path.join(sisyphus.getfs.p_cfg_dir, '.git')): git.Repo.clone_from("/".join(p_cfg_rmt), @@ -74,19 +71,19 @@ def brch_s_warn(branch, remote): " " + sisyphus.getcolor.reset + "'" + branch + "'") print(sisyphus.getcolor.green + "Active remote switched:" + " " + sisyphus.getcolor.reset + "'" + remote + "'") - print(sisyphus.getcolor.bright_yellow + "\nUse" + sisyphus.getcolor.reset + " " + "'" + "sisyphus mirror set 3" + "'" + " " + sisyphus.getcolor.bright_yellow + "or" + - sisyphus.getcolor.reset + " " + "'" + "sisyphus mirror set 7" + "'" + " " + sisyphus.getcolor.bright_yellow + "to pair the binhost" + sisyphus.getcolor.reset) - print(sisyphus.getcolor.bright_yellow + - "Use" + sisyphus.getcolor.reset + " " + "'" + "sisyphus branch --help" + "'" + " " + sisyphus.getcolor.bright_yellow + "for help" + sisyphus.getcolor.reset) + print(sisyphus.getcolor.bright_yellow + "\nUse" + sisyphus.getcolor.reset + " " + "'" + "sisyphus mirror set 3" + "'" + " " + sisyphus.getcolor.bright_yellow + + "or" + sisyphus.getcolor.reset + " " + "'" + "sisyphus mirror set 7" + "'" + " " + sisyphus.getcolor.bright_yellow + "to pair the binhost" + sisyphus.getcolor.reset) + print(sisyphus.getcolor.bright_yellow + "Use" + sisyphus.getcolor.reset + " " + "'" + + "sisyphus branch --help" + "'" + " " + sisyphus.getcolor.bright_yellow + "for help" + sisyphus.getcolor.reset) elif "next" in branch: print(sisyphus.getcolor.green + "\nActive branch switched:" + " " + sisyphus.getcolor.reset + "'" + branch + "'") print(sisyphus.getcolor.green + "Active remote switched:" + " " + sisyphus.getcolor.reset + "'" + remote + "'") - print(sisyphus.getcolor.bright_yellow + "\nUse" + sisyphus.getcolor.reset + " " + "'" + "sisyphus mirror set 4" + "'" + " " + sisyphus.getcolor.bright_yellow + "or" + - sisyphus.getcolor.reset + " " + "'" + "sisyphus mirror set 8" + "'" + " " + sisyphus.getcolor.bright_yellow + "to pair the binhost" + sisyphus.getcolor.reset) - print(sisyphus.getcolor.bright_yellow + - "Use" + sisyphus.getcolor.reset + " " + "'" + "sisyphus branch --help" + "'" + " " + sisyphus.getcolor.bright_yellow + "for help" + sisyphus.getcolor.reset) + print(sisyphus.getcolor.bright_yellow + "\nUse" + sisyphus.getcolor.reset + " " + "'" + "sisyphus mirror set 4" + "'" + " " + sisyphus.getcolor.bright_yellow + + "or" + sisyphus.getcolor.reset + " " + "'" + "sisyphus mirror set 8" + "'" + " " + sisyphus.getcolor.bright_yellow + "to pair the binhost" + sisyphus.getcolor.reset) + print(sisyphus.getcolor.bright_yellow + "Use" + sisyphus.getcolor.reset + " " + "'" + + "sisyphus branch --help" + "'" + " " + sisyphus.getcolor.bright_yellow + "for help" + sisyphus.getcolor.reset) def start(branch, remote): |