lint
This commit is contained in:
parent
7137302461
commit
8164f165b0
2 changed files with 1 additions and 3 deletions
|
@ -28,8 +28,6 @@ class Remote:
|
||||||
links = sorted(hypertext.get_links(html))
|
links = sorted(hypertext.get_links(html))
|
||||||
archives = [link for link in links
|
archives = [link for link in links
|
||||||
if link.endswith(ARCHIVE)]
|
if link.endswith(ARCHIVE)]
|
||||||
signatures = [link for link in links
|
|
||||||
if link.endswith(SIGNATURE)]
|
|
||||||
archive = archives[-1]
|
archive = archives[-1]
|
||||||
d[architecture] = archive
|
d[architecture] = archive
|
||||||
self.archives = d
|
self.archives = d
|
||||||
|
|
|
@ -21,7 +21,7 @@ class Repository:
|
||||||
directory = os.path.join(distribution, architecture)
|
directory = os.path.join(distribution, architecture)
|
||||||
_, _, files = next(os.walk(directory))
|
_, _, files = next(os.walk(directory))
|
||||||
archives = sorted([file for file in files
|
archives = sorted([file for file in files
|
||||||
if file.endswith(remote.ARCHIVE)])
|
if file.endswith(remote.ARCHIVE)])
|
||||||
archive = archives[-1]
|
archive = archives[-1]
|
||||||
d[architecture] = archive
|
d[architecture] = archive
|
||||||
self.archives = d
|
self.archives = d
|
||||||
|
|
Loading…
Reference in a new issue