summaryrefslogtreecommitdiff
path: root/src/backend/check.py
diff options
context:
space:
mode:
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'])