summaryrefslogtreecommitdiff
path: root/src/backend/check.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-01-31 01:20:32 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-01-31 01:20:32 +0000
commite5d40ebec925b9e0f308fa55930f7fd03f02a693 (patch)
treeb3ff6dcffc9c956419466bf37b66296bd18ba438 /src/backend/check.py
parente4f2e722b2740d16ddc2ffa9b184287a7850b203 (diff)
Revert "backend : reuse binhost module in csvfiles module, one less portage call"
This reverts commit e4f2e722b2740d16ddc2ffa9b184287a7850b203.
Diffstat (limited to 'src/backend/check.py')
-rw-r--r--src/backend/check.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/backend/check.py b/src/backend/check.py
index d5d3aca..b2d8206 100644
--- a/src/backend/check.py
+++ b/src/backend/check.py
@@ -2,34 +2,11 @@
import os
import subprocess
-import sisyphus.binhost
import sisyphus.filesystem
def root():
return True if os.getuid() == 0 else False
-
-def branch():
- binhostURL = sisyphus.binhost.getURL()
- localBranch = subprocess.check_output(['git', 'rev-parse', '--abbrev-ref', 'HEAD'])
- mismatch = int()
-
- if "packages-next" in binhostURL:
- os.chdir(sisyphus.filesystem.portageRepoDir)
- if localBranch.decode().strip() == "next":
- print(binhostURL.replace('packages-next', 'csv-next') + 'remotePackagesPre.csv')
- mismatch = int(0)
- else:
- mismatch = int(1)
- else:
- if localBranch.decode().strip() == "master":
- mismatch = int(0)
- else:
- mismatch = int(1)
-
- return localBranch,mismatch
-branch()
-
def portage():
if os.path.isdir(os.path.join(sisyphus.filesystem.portageRepoDir, '.git')):
os.chdir(sisyphus.filesystem.portageRepoDir)