diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-01-12 11:22:08 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-01-12 11:22:08 +0000 |
commit | 2016cc4db1569b9d210de235ef9feaefad6a7689 (patch) | |
tree | e52299aaf2f4d8d8b5e0a74eec784960a04cd68a /src/backend/checkenv.py | |
parent | fc46610f316eb45b017d8f054132f01d4c7c37d7 (diff) |
minor tweaks
Diffstat (limited to 'src/backend/checkenv.py')
-rw-r--r-- | src/backend/checkenv.py | 20 |
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() |