diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-25 23:18:00 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-25 23:18:00 +0100 |
commit | 382526fe605683e67f979e26d48b2889230efb6c (patch) | |
tree | 7485a34a759bf8367a724785231d8350031ace28 /src/backend/syncEnvironment.py | |
parent | 7fe2cc2aca426d089b5514bd217377291a9d2223 (diff) |
avoid repetitions
Diffstat (limited to 'src/backend/syncEnvironment.py')
-rw-r--r-- | src/backend/syncEnvironment.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/syncEnvironment.py b/src/backend/syncEnvironment.py index a961dd1..15ba3c3 100644 --- a/src/backend/syncEnvironment.py +++ b/src/backend/syncEnvironment.py @@ -4,7 +4,7 @@ import os import subprocess import sisyphus.getFilesystem -def syncGentooRepo(): +def gentooRepo(): os.chdir(sisyphus.getFilesystem.gentooRepoDir) localBranch = subprocess.check_output(['git', 'rev-parse', '--abbrev-ref', 'HEAD']) remoteBranch = subprocess.check_output(['git', 'rev-parse', '--symbolic-full-name', '@{u}']) @@ -15,7 +15,7 @@ def syncGentooRepo(): gitExecStage2 = subprocess.Popen(['git', 'reset', '--hard'] + remoteBranch.decode().strip().replace('refs/remotes/','').split() + ['--quiet'], stdout=subprocess.PIPE) gitExecStage2.wait() -def syncRedcoreRepo(): +def redcoreRepo(): os.chdir(sisyphus.getFilesystem.redcoreRepoDir) localBranch = subprocess.check_output(['git', 'rev-parse', '--abbrev-ref', 'HEAD']) remoteBranch = subprocess.check_output(['git', 'rev-parse', '--symbolic-full-name', '@{u}']) @@ -26,7 +26,7 @@ def syncRedcoreRepo(): gitExecStage2 = subprocess.Popen(['git', 'reset', '--hard'] + remoteBranch.decode().strip().replace('refs/remotes/','').split() + ['--quiet'], stdout=subprocess.PIPE) gitExecStage2.wait() -def syncPortageConfigRepo(): +def portageConfigRepo(): os.chdir(sisyphus.getFilesystem.portageConfigDir) localBranch = subprocess.check_output(['git', 'rev-parse', '--abbrev-ref', 'HEAD']) remoteBranch = subprocess.check_output(['git', 'rev-parse', '--symbolic-full-name', '@{u}']) |