summaryrefslogtreecommitdiff
path: root/src/backend/csvfiles.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-06-08 16:10:24 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-06-08 16:10:24 +0100
commitf587c2de87665b10e70b4143989572b19e43c08c (patch)
tree9d68aec0a5fa92d4f7a3a377b205a89610221a73 /src/backend/csvfiles.py
parent1d30457b03e7906770ee40a774320121e80a4bfd (diff)
rename some constants to something more pretty
Diffstat (limited to 'src/backend/csvfiles.py')
-rw-r--r--src/backend/csvfiles.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/csvfiles.py b/src/backend/csvfiles.py
index 67daec4..0c91e81 100644
--- a/src/backend/csvfiles.py
+++ b/src/backend/csvfiles.py
@@ -4,18 +4,18 @@ import subprocess
import io
def getURL():
- remotePkgCsv = []
- remoteDescCsv = []
+ remotePackagesCsvURL = []
+ remoteDescriptionsCsvURL = []
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():
if "packages-next" in portageOutput.rstrip():
- remotePkgCsv = str(portageOutput.rstrip().split("=")[1].strip('\"').replace('packages-next', 'csv-next') + 'remotePackagesPre.csv')
- remoteDescCsv = str(portageOutput.rstrip().split("=")[1].strip('\"').replace('packages-next', 'csv-next') + 'remoteDescriptionsPre.csv')
+ remotePackagesCsvURL = str(portageOutput.rstrip().split("=")[1].strip('\"').replace('packages-next', 'csv-next') + 'remotePackagesPre.csv')
+ remoteDescriptionsCsvURL = str(portageOutput.rstrip().split("=")[1].strip('\"').replace('packages-next', 'csv-next') + 'remoteDescriptionsPre.csv')
else:
- remotePkgCsv = str(portageOutput.rstrip().split("=")[1].strip('\"').replace('packages', 'csv') + 'remotePackagesPre.csv')
- remoteDescCsv = str(portageOutput.rstrip().split("=")[1].strip('\"').replace('packages', 'csv') + 'remoteDescriptionsPre.csv')
+ remotePackagesCsvURL = str(portageOutput.rstrip().split("=")[1].strip('\"').replace('packages', 'csv') + 'remotePackagesPre.csv')
+ remoteDescriptionsCsvURL = str(portageOutput.rstrip().split("=")[1].strip('\"').replace('packages', 'csv') + 'remoteDescriptionsPre.csv')
portageExec.wait()
- return remotePkgCsv,remoteDescCsv
+ return remotePackagesCsvURL,remoteDescriptionsCsvURL