Fix parameter mismatch

alt-impl
Raymond Li 9 months ago
parent 0d28efaebb
commit 232a125139
Signed by: r389li
GPG Key ID: A014EA89B62BBB1B
  1. 4
      projects/linuxmint.py
  2. 4
      projects/linuxmint_packages.py
  3. 2
      projects/macports.py
  4. 4
      projects/mxlinux_iso.py
  5. 4
      projects/netbsd.py
  6. 4
      projects/opensuse.py
  7. 4
      projects/puppy_linux.py
  8. 4
      projects/racket.py
  9. 4
      projects/raspberrypi.py
  10. 2
      projects/sage.py
  11. 4
      projects/slackware.py
  12. 4
      projects/trisquel.py
  13. 4
      projects/ubuntu_ports.py
  14. 4
      projects/ubuntu_ports_releases.py
  15. 4
      projects/x_org.py
  16. 4
      projects/xiph.py
  17. 4
      projects/xubuntu_releases.py

@ -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=[]
@ -63,4 +63,4 @@ class linuxmint(Project):
# calling function
cls.scrape(compare, folders, upstream_url, csc_url, "")
return all(compare)
return all(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=[]
@ -52,4 +52,4 @@ class linuxmint_packages(Project):
if requests.get(f).text != requests.get(urls2[index]).text:
# comparing the file content bc that's how the base class does it, but we can speed it up by just comparing the dates
return False
return True
return True

@ -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"]
@ -59,4 +59,4 @@ class mxlinux_iso(Project):
# print(cls.check_iso(upstream_url+"slackware-iso/", csc_url+"slackware-iso/"))
mirrors = data[project]["mirrors"]
return cls.check_iso(csc_url, mirrors)
return cls.check_iso(csc_url, mirrors)

@ -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"]
@ -88,4 +88,4 @@ class netbsd(Project):
# print(cls.check_version(upstream_url, csc_url))
# print(cls.check_iso(upstream_url+"iso/", csc_url+"iso/"))
return cls.check_version(upstream_url, csc_url) and cls.check_iso(upstream_url+"iso/", csc_url+"iso/")
return cls.check_version(upstream_url, csc_url) and cls.check_iso(upstream_url+"iso/", csc_url+"iso/")

@ -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=[]
@ -63,4 +63,4 @@ class opensuse(Project):
# calling function
cls.scrape(compare, folders, upstream_url, csc_url, "")
return all(compare)
return all(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=[]
@ -76,4 +76,4 @@ class puppy_linux(Project):
# calling function
cls.scrape(compare, folders, upstream_url, csc_url, "")
return all(compare)
return all(compare)

@ -66,9 +66,9 @@ 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"]
return cls.get_latest_version(csc_url) == cls.get_latest_version(upstream_url)
return cls.get_latest_version(csc_url) == cls.get_latest_version(upstream_url)

@ -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=[]
@ -52,4 +52,4 @@ class raspberrypi(Project):
if requests.get(f).text != requests.get(urls2[index]).text:
# comparing the file content bc that's how the base class does it, but we can speed it up by just comparing the dates
return False
return True
return True

@ -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"]
@ -71,4 +71,4 @@ class slackware(Project):
# print(cls.check_iso(upstream_url+"slackware-iso/", csc_url+"slackware-iso/"))
return cls.scrape(upstream_url, csc_url) and cls.check_iso(upstream_url+"slackware-iso/", csc_url+"slackware-iso/")
return cls.scrape(upstream_url, csc_url) and cls.check_iso(upstream_url+"slackware-iso/", csc_url+"slackware-iso/")

@ -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"]
@ -64,4 +64,4 @@ class trisquel(Project):
# print(cls.check_iso(upstream_url+"slackware-iso/", csc_url+"slackware-iso/"))
mirrors = data[project]["mirrors"]
return cls.scrape(upstream_url, csc_url+"packages/dists/") and cls.check_iso(csc_url+"iso/", mirrors)
return cls.scrape(upstream_url, csc_url+"packages/dists/") and cls.check_iso(csc_url+"iso/", mirrors)

@ -29,11 +29,11 @@ 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"]
upstream_url = data[project]["upstream"] + data[project]["file"]
# calling function
return cls.scrape(upstream_url, csc_url)
return cls.scrape(upstream_url, csc_url)

@ -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=[]
@ -73,4 +73,4 @@ class ubuntu_ports_releases(Project):
# calling function
cls.scrape(compare, folders, upstream_url, csc_url, "")
return all(compare)
return all(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=[]
@ -45,4 +45,4 @@ class x_org(Project):
# print(set(files1) - set(files2))
return set(files1) == set(files2)
return set(files1) == set(files2)

@ -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=[]
@ -96,4 +96,4 @@ class xiph(Project):
if set(releases1) != set(releases2):
return False
return cls.check_mirror(csc_url, upstream_url, releases2)
return cls.check_mirror(csc_url, upstream_url, releases2)

@ -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=[]
@ -73,4 +73,4 @@ class xubuntu_releases(Project):
# calling function
cls.scrape(compare, folders, upstream_url, csc_url, "")
return all(compare)
return all(compare)

Loading…
Cancel
Save