From 26bb5d6183b1eabf5c5d2eac6558c9434a8f5f93 Mon Sep 17 00:00:00 2001 From: Simone Margaritelli <evilsocket@gmail.com> Date: Sun, 20 Oct 2019 18:39:01 +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 74e71dc..42effb8 100644 --- a/pwnagotchi/plugins/default/auto-update.py +++ b/pwnagotchi/plugins/default/auto-update.py @@ -48,8 +48,8 @@ def check(version, repo, native=True): 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): - logging.info("found new update: %s" % download_url) info['url'] = download_url + break return info @@ -84,6 +84,7 @@ def on_internet_available(agent): for repo, local_version, is_native in to_check: info = check(local_version, repo, is_native) if info['url'] is not None: + logging.warning("new update for %s is available: %s" % (repo, info['url'])) to_install.append(info) if len(to_install) > 0 and OPTIONS['install']: