summaryrefslogtreecommitdiff
path: root/src/backend/checkenv.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/checkenv.py')
-rw-r--r--src/backend/checkenv.py20
1 files changed, 1 insertions, 19 deletions
diff --git a/src/backend/checkenv.py b/src/backend/checkenv.py
index 948bbfe..49c2883 100644
--- a/src/backend/checkenv.py
+++ b/src/backend/checkenv.py
@@ -3,32 +3,14 @@
import os
import subprocess
import sisyphus.getenv
-import sisyphus.getfs
def root():
return True if os.getuid() == 0 else False
-def branch():
- activeBranch = None
-
- if os.path.isdir(os.path.join(sisyphus.getfs.gentooRepoDir, '.git')):
- os.chdir(sisyphus.getfs.gentooRepoDir)
- localBranch = subprocess.check_output(
- ['git', 'rev-parse', '--abbrev-ref', 'HEAD'])
-
- if localBranch.decode().strip() == 'master':
- activeBranch = str('master')
-
- if localBranch.decode().strip() == 'next':
- activeBranch = str('next')
-
- return activeBranch
-
-
def sanity():
- activeBranch = branch()
+ activeBranch = sisyphus.getenv.systemBranch()
binhostURL = sisyphus.getenv.binhostURL()
isSane = int()