2022-08-04 17:53:12 -04:00
|
|
|
"""
|
|
|
|
Contains ubuntu class
|
|
|
|
"""
|
|
|
|
|
|
|
|
import os
|
2021-10-04 06:36:22 -04:00
|
|
|
from project import Project
|
2021-10-17 15:49:06 -04:00
|
|
|
from shared import CSC_MIRROR
|
2022-08-04 17:53:12 -04:00
|
|
|
from shared import NUM_UBUNTU_RELEASES
|
|
|
|
import requests
|
2021-10-04 06:36:22 -04:00
|
|
|
|
|
|
|
class ubuntu_ports(Project):
|
2021-10-17 15:49:06 -04:00
|
|
|
"""ubuntu_ports class"""
|
|
|
|
@staticmethod
|
2022-08-04 17:53:12 -04:00
|
|
|
def check(data, project, current_time):
|
|
|
|
page = requests.get(data[project]["upstream"]).text
|
|
|
|
return page.count("Up to date") == NUM_UBUNTU_RELEASES
|