forked from public/mirror-checker
Fix parameter mismatch
This commit is contained in:
parent
0d28efaebb
commit
232a125139
|
@ -51,7 +51,7 @@ class linuxmint(Project):
|
|||
cls.scrape(compare, folders, site1, site2, dir_next)
|
||||
|
||||
@classmethod
|
||||
def check(cls, data, project):
|
||||
def check(cls, data, project, current_time):
|
||||
"""Check if project packages are up-to-date"""
|
||||
# lists
|
||||
compare=[]
|
||||
|
|
|
@ -31,7 +31,7 @@ class linuxmint_packages(Project):
|
|||
# print(site_next)
|
||||
|
||||
@classmethod
|
||||
def check(cls, data, project):
|
||||
def check(cls, data, project, current_time):
|
||||
"""Check if project packages are up-to-date"""
|
||||
# lists
|
||||
urls1=[]
|
||||
|
|
|
@ -28,7 +28,7 @@ class macports(Project):
|
|||
return matches[0]
|
||||
|
||||
@classmethod
|
||||
def check(cls, data, project):
|
||||
def check(cls, data, project, current_time):
|
||||
"""Check if project packages are up-to-date"""
|
||||
csc_url = CSC_MIRROR + data[project]["csc"]
|
||||
upstream_url = data[project]["upstream"]
|
||||
|
|
|
@ -50,7 +50,7 @@ class mxlinux_iso(Project):
|
|||
return True
|
||||
|
||||
@classmethod
|
||||
def check(cls, data, project):
|
||||
def check(cls, data, project, current_time):
|
||||
"""Check if project packages are up-to-date"""
|
||||
|
||||
csc_url = CSC_MIRROR + data[project]["csc"] + data[project]["file"]
|
||||
|
|
|
@ -80,7 +80,7 @@ class netbsd(Project):
|
|||
|
||||
|
||||
@classmethod
|
||||
def check(cls, data, project):
|
||||
def check(cls, data, project, current_time):
|
||||
"""Check if project packages are up-to-date"""
|
||||
|
||||
csc_url = CSC_MIRROR + data[project]["csc"] + data[project]["file"]
|
||||
|
|
|
@ -51,7 +51,7 @@ class opensuse(Project):
|
|||
cls.scrape(compare, folders, site1, site2, dir_next)
|
||||
|
||||
@classmethod
|
||||
def check(cls, data, project):
|
||||
def check(cls, data, project, current_time):
|
||||
"""Check if project packages are up-to-date"""
|
||||
# lists
|
||||
compare=[]
|
||||
|
|
|
@ -64,7 +64,7 @@ class puppy_linux(Project):
|
|||
|
||||
|
||||
@classmethod
|
||||
def check(cls, data, project):
|
||||
def check(cls, data, project, current_time):
|
||||
"""Check if project packages are up-to-date"""
|
||||
# lists
|
||||
compare=[]
|
||||
|
|
|
@ -66,7 +66,7 @@ class racket(Project):
|
|||
|
||||
|
||||
@classmethod
|
||||
def check(cls, data, project):
|
||||
def check(cls, data, project, current_time):
|
||||
"""Check if project packages are up-to-date"""
|
||||
csc_url = CSC_MIRROR + data[project]["csc"] + data[project]["file"]
|
||||
upstream_url = data[project]["upstream"] + data[project]["file"]
|
||||
|
|
|
@ -31,7 +31,7 @@ class raspberrypi(Project):
|
|||
# print(site_next)
|
||||
|
||||
@classmethod
|
||||
def check(cls, data, project):
|
||||
def check(cls, data, project, current_time):
|
||||
"""Check if project packages are up-to-date"""
|
||||
# lists
|
||||
urls1=[]
|
||||
|
|
|
@ -15,7 +15,7 @@ class sage(Project):
|
|||
return max(dates)
|
||||
|
||||
@classmethod
|
||||
def check(cls, data, project):
|
||||
def check(cls, data, project, current_time):
|
||||
page1 = requests.get(CSC_MIRROR + data[project]["csc"] + data[project]["file"]).text
|
||||
page2 = requests.get("http://mirrors.mit.edu/sage/src/index.html").text
|
||||
page3 = requests.get("https://mirror.rcg.sfu.ca/mirror/sage/src/index.html").text
|
||||
|
|
|
@ -63,7 +63,7 @@ class slackware(Project):
|
|||
return True
|
||||
|
||||
@classmethod
|
||||
def check(cls, data, project):
|
||||
def check(cls, data, project, current_time):
|
||||
"""Check if project packages are up-to-date"""
|
||||
|
||||
csc_url = CSC_MIRROR + data[project]["csc"] + data[project]["file"]
|
||||
|
|
|
@ -55,7 +55,7 @@ class trisquel(Project):
|
|||
return True
|
||||
|
||||
@classmethod
|
||||
def check(cls, data, project):
|
||||
def check(cls, data, project, current_time):
|
||||
"""Check if project packages are up-to-date"""
|
||||
|
||||
csc_url = CSC_MIRROR + data[project]["csc"] + data[project]["file"]
|
||||
|
|
|
@ -29,7 +29,7 @@ class ubuntu_ports(Project):
|
|||
return True
|
||||
|
||||
@classmethod
|
||||
def check(cls, data, project):
|
||||
def check(cls, data, project, current_time):
|
||||
"""Check if project packages are up-to-date"""
|
||||
|
||||
csc_url = CSC_MIRROR + data[project]["csc"] + data[project]["file"]
|
||||
|
|
|
@ -61,7 +61,7 @@ class ubuntu_ports_releases(Project):
|
|||
cls.scrape(compare, folders, site1, site2, dir_next)
|
||||
|
||||
@classmethod
|
||||
def check(cls, data, project):
|
||||
def check(cls, data, project, current_time):
|
||||
"""Check if project packages are up-to-date"""
|
||||
# lists
|
||||
compare=[]
|
||||
|
|
|
@ -30,7 +30,7 @@ class x_org(Project):
|
|||
|
||||
|
||||
@classmethod
|
||||
def check(cls, data, project):
|
||||
def check(cls, data, project, current_time):
|
||||
"""Check if project packages are up-to-date"""
|
||||
# lists
|
||||
files1=[]
|
||||
|
|
|
@ -80,7 +80,7 @@ class xiph(Project):
|
|||
|
||||
|
||||
@classmethod
|
||||
def check(cls, data, project):
|
||||
def check(cls, data, project, current_time):
|
||||
"""Check if project packages are up-to-date"""
|
||||
# lists
|
||||
releases1=[]
|
||||
|
|
|
@ -61,7 +61,7 @@ class xubuntu_releases(Project):
|
|||
cls.scrape(compare, folders, site1, site2, dir_next)
|
||||
|
||||
@classmethod
|
||||
def check(cls, data, project):
|
||||
def check(cls, data, project, current_time):
|
||||
"""Check if project packages are up-to-date"""
|
||||
# lists
|
||||
compare=[]
|
||||
|
|
Loading…
Reference in New Issue