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

import sisyphus.binhost

def start():
    isPackageCsv = []
    isDescriptionCsv = []
    isBinhost = sisyphus.binhost.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