17 lines
398 B
Python
17 lines
398 B
Python
"""
|
|
Contains ubuntu class
|
|
"""
|
|
|
|
import os
|
|
from project import Project
|
|
from shared import CSC_MIRROR
|
|
from shared import NUM_UBUNTU_RELEASES
|
|
import requests
|
|
|
|
class ubuntu_ports(Project):
|
|
"""ubuntu_ports class"""
|
|
@staticmethod
|
|
def check(data, project, current_time):
|
|
page = requests.get(data[project]["upstream"]).text
|
|
return page.count("Up to date") == NUM_UBUNTU_RELEASES
|