summaryrefslogtreecommitdiff
path: root/src/backend/binhost.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-02-02 22:44:34 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-02-02 22:44:34 +0000
commitc72f5dac54d4b8382a4d3891af07509ebe629f63 (patch)
tree58259dee11751843171e4f4e5fe809f6a90e585e /src/backend/binhost.py
parente8e43274a6dda2257f3a43dc2a20572f7779cce5 (diff)
minor changes
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