This commit is contained in:
Marc Beninca 2021-10-09 20:03:12 +02:00 committed by Marc Beninca
parent 7137302461
commit 8164f165b0
2 changed files with 1 additions and 3 deletions

View file

@ -28,8 +28,6 @@ class Remote:
links = sorted(hypertext.get_links(html))
archives = [link for link in links
if link.endswith(ARCHIVE)]
signatures = [link for link in links
if link.endswith(SIGNATURE)]
archive = archives[-1]
d[architecture] = archive
self.archives = d

View file

@ -21,7 +21,7 @@ class Repository:
directory = os.path.join(distribution, architecture)
_, _, files = next(os.walk(directory))
archives = sorted([file for file in files
if file.endswith(remote.ARCHIVE)])
if file.endswith(remote.ARCHIVE)])
archive = archives[-1]
d[architecture] = archive
self.archives = d