This commit is contained in:
Marc Beninca 2021-10-10 02:40:21 +02:00 committed by Marc Beninca
parent e45e9cb408
commit c79ec30078
2 changed files with 6 additions and 3 deletions

View file

@ -36,8 +36,7 @@ class Remote:
c = {}
for architecture in self.architectures:
location = os.path.join(self.location, DISTRIBUTION, architecture)
html = requests.get(location).content.decode(CHARSET)
links = sorted(hypertext.get_links(html))
links = sorted(hypertext.get_links(location))
archives = [link for link in links
if link.endswith(ARCHIVE)]
archive = archives[-1]