summaryrefslogtreecommitdiff
path: root/src/backend/check.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-06-06 20:37:56 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-06-06 20:37:56 +0100
commited88746cd33c0f861e9c45bf05bf9e44d86089ba (patch)
treee6656f3d54bd738383d048c744d330dca2c15e4c /src/backend/check.py
parent2d86cd9ddc5d9442e4a8e8fb50d72480a8293a4a (diff)
filesystem module : gather all the folder and file paths used by sisyphus under one module, and expose them to other modules from there
Diffstat (limited to 'src/backend/check.py')
-rw-r--r--src/backend/check.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/backend/check.py b/src/backend/check.py
index 2f46357..ee580a2 100644
--- a/src/backend/check.py
+++ b/src/backend/check.py
@@ -3,16 +3,14 @@
import os
import sys
import subprocess
-
-gentooEbuildDir = '/usr/ports/gentoo'
-redcoreEbuildDir = '/usr/ports/redcore'
+import sisyphus.filesystem
def root():
if not os.getuid() == 0:
sys.exit("\nYou need root permissions to do this, exiting!\n")
def portage():
- os.chdir(gentooEbuildDir)
+ os.chdir(sisyphus.filesystem.gentooEbuildDir)
needsPortageSync = int()
localBranch = subprocess.check_output(['git', 'rev-parse', '--abbrev-ref', 'HEAD'])
@@ -28,7 +26,7 @@ def portage():
return needsPortageSync
def overlay():
- os.chdir(redcoreEbuildDir)
+ os.chdir(sisyphus.filesystem.redcoreEbuildDir)
needsOverlaySync = int()
localBranch = subprocess.check_output(['git', 'rev-parse', '--abbrev-ref', 'HEAD'])