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

View File

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