diff --git a/pwnagotchi/plugins/default/auto-update.py b/pwnagotchi/plugins/default/auto-update.py index 3fa45bb6..450496ac 100644 --- a/pwnagotchi/plugins/default/auto-update.py +++ b/pwnagotchi/plugins/default/auto-update.py @@ -28,7 +28,6 @@ def check(version, repo, native=True): resp = requests.get("https://api.github.com/repos/%s/releases/latest" % repo) latest = resp.json() info['available'] = latest_ver = latest['tag_name'].replace('v', '') - is_arm = info['arch'].startswith('arm') is_arm64 = info['arch'].startswith('aarch') local = version_to_tuple(info['current']) @@ -37,15 +36,7 @@ def check(version, repo, native=True): if not native: info['url'] = "https://github.com/%s/archive/%s.zip" % (repo, latest['tag_name']) else: - if is_arm: - # check if this release is compatible with arm6 - for asset in latest['assets']: - download_url = asset['browser_download_url'] - if (download_url.endswith('.zip') and - (info['arch'] in download_url or (is_arm and 'armhf' in download_url))): - info['url'] = download_url - break - elif is_arm64: + if is_arm64: # check if this release is compatible with aarch64 for asset in latest['assets']: download_url = asset['browser_download_url'] @@ -139,7 +130,7 @@ def install(display, update): source_path = "%s-%s" % (source_path, update['available']) # setup.py is going to install data files for us - os.system("cd %s && pip3 install ." % source_path) + os.system("cd %s && pip3 install . --break-system-packages" % source_path) return True