From f7a23b32c139563ba91301130a87e107044ddcc7 Mon Sep 17 00:00:00 2001 From: Simone Margaritelli Date: Sun, 20 Oct 2019 18:45:56 +0200 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- pwnagotchi/plugins/default/auto-update.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pwnagotchi/plugins/default/auto-update.py b/pwnagotchi/plugins/default/auto-update.py index 5757925..8427029 100644 --- a/pwnagotchi/plugins/default/auto-update.py +++ b/pwnagotchi/plugins/default/auto-update.py @@ -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)