summaryrefslogtreecommitdiff
path: root/src/backend/getEnvironment.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-10-30 14:26:52 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-10-30 14:26:52 +0000
commit02b654dc089c570ce81ce5da0c2c48d5d21d3cb8 (patch)
tree2a32a8634b59efc8b9f28ec8d8732cdd6b3b3414 /src/backend/getEnvironment.py
parent331cd284de1de5f7192e1588b836f89337326784 (diff)
move getEnvironment -> getenv
Diffstat (limited to 'src/backend/getEnvironment.py')
-rw-r--r--src/backend/getEnvironment.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/backend/getEnvironment.py b/src/backend/getEnvironment.py
deleted file mode 100644
index 5edd038..0000000
--- a/src/backend/getEnvironment.py
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/python3
-
-import io
-import subprocess
-
-def binhostURL():
- binhostURL = []
- portageExec = subprocess.Popen(['emerge', '--info', '--verbose'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
-
- for portageOutput in io.TextIOWrapper(portageExec.stdout, encoding="utf-8"):
- if "PORTAGE_BINHOST" in portageOutput:
- binhostURL = portageOutput.rstrip().split("=")[1].strip('\"')
-
- portageExec.wait()
- return binhostURL
-
-def csvURL():
- csvURL = binhostURL()
- packagesCsvURL = []
- descriptionsCsvURL = []
-
- if "packages-next" in csvURL:
- packagesCsvURL = csvURL.replace('packages-next', 'csv-next') + 'remotePackagesPre.csv'
- descriptionsCsvURL = csvURL.replace('packages-next', 'csv-next') + 'remoteDescriptionsPre.csv'
- else:
- packagesCsvURL = csvURL.replace('packages', 'csv') + 'remotePackagesPre.csv'
- descriptionsCsvURL = csvURL.replace('packages', 'csv') + 'remoteDescriptionsPre.csv'
-
- return packagesCsvURL,descriptionsCsvURL