misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
Simone Margaritelli 2019-10-20 19:29:11 +02:00
parent ddeefa037d
commit 0cdb8c3221
No known key found for this signature in database
GPG Key ID: 82E42E7F3B34C97E

@ -51,7 +51,7 @@ def check(version, repo, native=True):
# check if this release is compatible with arm6
for asset in latest['assets']:
download_url = asset['browser_download_url']
if download_url.endswith('.zip') and (arch in download_url or is_arm and 'armhf' in download_url):
if download_url.endswith('.zip') and (info['arch'] in download_url or (is_arm and 'armhf' in download_url)):
info['url'] = download_url
break