summaryrefslogtreecommitdiff
path: root/src/backend/syncenv.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/syncenv.py')
-rw-r--r--src/backend/syncenv.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/backend/syncenv.py b/src/backend/syncenv.py
index 2b3277f..5c07c3a 100644
--- a/src/backend/syncenv.py
+++ b/src/backend/syncenv.py
@@ -4,6 +4,7 @@ import os
import subprocess
import sisyphus.getfs
+
def gentooRepo():
os.chdir(sisyphus.getfs.gentooRepoDir)
localBranch = subprocess.check_output(['git', 'rev-parse', '--abbrev-ref', 'HEAD'])
@@ -15,6 +16,7 @@ def gentooRepo():
gitExecStage2 = subprocess.Popen(['git', 'reset', '--hard'] + remoteBranch.decode().strip().replace('refs/remotes/','').split() + ['--quiet'], stdout=subprocess.PIPE)
gitExecStage2.wait()
+
def redcoreRepo():
os.chdir(sisyphus.getfs.redcoreRepoDir)
localBranch = subprocess.check_output(['git', 'rev-parse', '--abbrev-ref', 'HEAD'])
@@ -26,6 +28,7 @@ def redcoreRepo():
gitExecStage2 = subprocess.Popen(['git', 'reset', '--hard'] + remoteBranch.decode().strip().replace('refs/remotes/','').split() + ['--quiet'], stdout=subprocess.PIPE)
gitExecStage2.wait()
+
def portageConfigRepo():
os.chdir(sisyphus.getfs.portageConfigDir)
localBranch = subprocess.check_output(['git', 'rev-parse', '--abbrev-ref', 'HEAD'])