summaryrefslogtreecommitdiff
path: root/src/backend/binhost.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/binhost.py')
-rw-r--r--src/backend/binhost.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/binhost.py b/src/backend/binhost.py
index 5bcf20c..809fa34 100644
--- a/src/backend/binhost.py
+++ b/src/backend/binhost.py
@@ -3,13 +3,13 @@
import subprocess
import io
-def getURL():
- binhostURL = []
+def start():
+ isBinhost = []
portageExec = subprocess.Popen(['emerge', '--info', '--verbose'], stdout=subprocess.PIPE)
for portageOutput in io.TextIOWrapper(portageExec.stdout, encoding="utf-8"):
if "PORTAGE_BINHOST" in portageOutput.rstrip():
- binhostURL = str(portageOutput.rstrip().split("=")[1].strip('\"'))
+ isBinhost = str(portageOutput.rstrip().split("=")[1].strip('\"'))
portageExec.wait()
- return binhostURL
+ return isBinhost