From bceb3c4c4f6d8cfb2ca63b49d1d62d183e654fed Mon Sep 17 00:00:00 2001 From: Simone Margaritelli Date: Sun, 20 Oct 2019 21:36:37 +0200 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- pwnagotchi/plugins/default/auto-update.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pwnagotchi/plugins/default/auto-update.py b/pwnagotchi/plugins/default/auto-update.py index 6155ad5f..5aa8b555 100644 --- a/pwnagotchi/plugins/default/auto-update.py +++ b/pwnagotchi/plugins/default/auto-update.py @@ -47,8 +47,7 @@ def check(version, repo, native=True): is_arm = info['arch'].startswith('arm') local = pkg_resources.parse_version(info['current']) - remote = pkg_resources.parse_requirements(latest_ver) - + remote = pkg_resources.parse_version(latest_ver) if remote > local: if not native: info['url'] = "https://github.com/%s/archive/%s.zip" % (repo, latest['tag_name'])