mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
@ -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)
|
||||||
|
Reference in New Issue
Block a user