diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-03-09 19:28:11 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-03-09 19:28:11 +0000 |
commit | 180c2e119142573d42fe0e67a42b3530a7aed70b (patch) | |
tree | 1a7b0e105227cb9a701189fb91b85e2bba580d66 /src/backend/getenv.py | |
parent | 8577a33ed2f85d13b3e1dd66970ca1302b268719 (diff) |
fixups
Diffstat (limited to 'src/backend/getenv.py')
-rw-r--r-- | src/backend/getenv.py | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/backend/getenv.py b/src/backend/getenv.py index fdb47d4..0dc2ec6 100644 --- a/src/backend/getenv.py +++ b/src/backend/getenv.py @@ -6,36 +6,36 @@ import subprocess import sisyphus.getfs -def bhaddr(): - bhaddr = [] +def bh_addr(): + bh_addr = [] p_exe = subprocess.Popen( ['emerge', '--info', '--verbose'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) for p_out in io.TextIOWrapper(p_exe.stdout, encoding="utf-8"): if "PORTAGE_BINHOST" in p_out: - bhaddr = p_out.rstrip().split("=")[1].strip('\"') + bh_addr = p_out.rstrip().split("=")[1].strip('\"') p_exe.wait() - return bhaddr + return bh_addr -def csvaddr(): - csvaddr = bhaddr() - pcsvaddr = [] - dcsvaddr = [] +def csv_addr(): + csv_addr = bh_addr() + pcsv_addr = [] + dcsv_addr = [] - if "packages-next" in csvaddr: - pcsvaddr = csvaddr.replace( + if "packages-next" in csv_addr: + pcsv_addr = csv_addr.replace( 'packages-next', 'csv-next') + 'remotePackagesPre.csv' - dcsvaddr = csvaddr.replace( + dcsv_addr = csv_addr.replace( 'packages-next', 'csv-next') + 'remoteDescriptionsPre.csv' else: - pcsvaddr = csvaddr.replace( + pcsv_addr = csv_addr.replace( 'packages', 'csv') + 'remotePackagesPre.csv' - dcsvaddr = csvaddr.replace( + dcsv_addr = csv_addr.replace( 'packages', 'csv') + 'remoteDescriptionsPre.csv' - return pcsvaddr, dcsvaddr + return pcsv_addr, dcsv_addr def systemBranch(): |