diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/syncEnvironment.py | 6 | ||||
-rw-r--r-- | src/backend/updateAll.py | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/syncEnvironment.py b/src/backend/syncEnvironment.py index db7d4d7..a961dd1 100644 --- a/src/backend/syncEnvironment.py +++ b/src/backend/syncEnvironment.py @@ -4,7 +4,7 @@ import os import subprocess import sisyphus.getFilesystem -def syncStage1(): +def syncGentooRepo(): 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 syncStage1(): gitExecStage2 = subprocess.Popen(['git', 'reset', '--hard'] + remoteBranch.decode().strip().replace('refs/remotes/','').split() + ['--quiet'], stdout=subprocess.PIPE) gitExecStage2.wait() -def syncStage2(): +def syncRedcoreRepo(): 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 syncStage2(): gitExecStage2 = subprocess.Popen(['git', 'reset', '--hard'] + remoteBranch.decode().strip().replace('refs/remotes/','').split() + ['--quiet'], stdout=subprocess.PIPE) gitExecStage2.wait() -def syncStage3(): +def syncPortageConfigRepo(): 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}']) diff --git a/src/backend/updateAll.py b/src/backend/updateAll.py index c47d294..6ee7ea0 100644 --- a/src/backend/updateAll.py +++ b/src/backend/updateAll.py @@ -11,9 +11,9 @@ import sisyphus.syncEnvironment def syncAll(): sisyphus.purgeEnvironment.cache() - sisyphus.syncEnvironment.syncStage1() - sisyphus.syncEnvironment.syncStage2() - sisyphus.syncEnvironment.syncStage3() + sisyphus.syncEnvironment.syncGentooRepo() + sisyphus.syncEnvironment.syncRedcoreRepo() + sisyphus.syncEnvironment.syncPortageConfigRepo() sisyphus.syncDatabase.syncRemote() @animation.wait('fetching updates') |