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

This commit is contained in:
Simone Margaritelli 2019-10-20 18:45:56 +02:00
parent c947d5c43b
commit f7a23b32c1
No known key found for this signature in database
GPG Key ID: 82E42E7F3B34C97E

View File

@ -42,7 +42,7 @@ def check(version, repo, native=True):
if latest_ver != info['current']:
if not native:
info['url'] = latest['zipball_url']
info['url'] = "https://github.com/%s/archive/%s.zip" % (repo, latest['tag_name'])
else:
# check if this release is compatible with arm6
for asset in latest['assets']:
@ -101,5 +101,6 @@ def on_internet_available(agent):
except Exception as e:
logging.error("[update] %s" % e)
logging.debug("[update] setting status '%s'" % prev_status)
display.set('status', prev_status if prev_status is not None else '')
display.update(force=True)