misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
Simone Margaritelli 2019-10-20 21:36:37 +02:00
parent df246b255a
commit bceb3c4c4f
No known key found for this signature in database
GPG Key ID: 82E42E7F3B34C97E

View File

@ -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'])