synchronization

This commit is contained in:
Marc Beninca 2021-10-09 19:46:11 +02:00 committed by Marc Beninca
parent 47120adeb5
commit 4397a20bfd
4 changed files with 33 additions and 17 deletions

View file

@ -16,11 +16,12 @@ SUBSYSTEMS = ['msys', 'mingw']
class Remote:
def __init__(self, args):
self.location = args[arguments.REMOTE]
self.architectures = args[arguments.ARCHITECTURES]
self.load()
def load(self):
d = {}
for architecture in ARCHITECTURES:
for architecture in self.architectures:
url = os.path.join(self.location, DISTRIBUTION, architecture)
html = requests.get(url).content.decode(CHARSET)
links = sorted(hypertext.get_links(html))