summaryrefslogtreecommitdiff
path: root/src/backend/getCSV.py
blob: 798f163b66afabc1a46abbfda7ca81328877dffb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/python3

import sisyphus.getBinhost

def start():
    isPackageCsv = []
    isDescriptionCsv = []
    isBinhost = sisyphus.getBinhost.start()

    if "packages-next" in isBinhost:
        isPackageCsv = isBinhost.replace('packages-next', 'csv-next') + 'remotePackagesPre.csv'
        isDescriptionCsv = isBinhost.replace('packages-next', 'csv-next') + 'remoteDescriptionsPre.csv'
    else:
        isPackageCsv = isBinhost.replace('packages', 'csv') + 'remotePackagesPre.csv'
        isDescriptionCsv = isBinhost.replace('packages', 'csv') + 'remoteDescriptionsPre.csv'

    return isPackageCsv,isDescriptionCsv