From 8cf0e391e659917fd73d2ddbea7cc1bd2fa8cdae Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 25 Nov 2018 18:06:34 +0000 Subject: add support for next (testing) repository --- src/backend/libsisyphus.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/backend/libsisyphus.py b/src/backend/libsisyphus.py index ebd64c0..6308f44 100644 --- a/src/backend/libsisyphus.py +++ b/src/backend/libsisyphus.py @@ -54,8 +54,12 @@ def getCsvUrl(): for portageOutput in io.TextIOWrapper(portageExec.stdout, encoding="utf-8"): if "PORTAGE_BINHOST" in portageOutput.rstrip(): - remotePkgCsv = str(portageOutput.rstrip().split("=")[1].strip('\"').replace('packages', 'csv') + 'remotePackagesPre.csv') - remoteDescCsv = str(portageOutput.rstrip().split("=")[1].strip('\"').replace('packages', 'csv') + 'remoteDescriptionsPre.csv') + 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') + 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') return remotePkgCsv,remoteDescCsv @animation.wait('resolving dependencies') -- cgit v1.2.3