From 5c4874450eb1148c57b6978c875c35f82a977283 Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 8 Aug 2023 00:22:45 +0800 Subject: [PATCH] fix #400 This fix causes the script to exit if `--config` was selected. You will need to run `python3 -m pip install --upgrade precursorupdater` to pull in the fix. It should be live now. Thanks for reporting this bug. --- tools/updater/precursorupdater/precursorupdater.py | 4 ++++ tools/updater/setup.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/updater/precursorupdater/precursorupdater.py b/tools/updater/precursorupdater/precursorupdater.py index 2ea0c8bf7..7c93500de 100755 --- a/tools/updater/precursorupdater/precursorupdater.py +++ b/tools/updater/precursorupdater/precursorupdater.py @@ -662,6 +662,10 @@ def main(): print("Precursor device not found. Please check the USB cable and ensure that `usb debug` was run in Shellchat") exit(1) + if args.config: + print("--config selected, quitting.") + exit(0) + # now try to download all the artifacts and check their versions # this list should visit kernels in order from newest to oldest. URL_STABLE = 'https://ci.betrusted.io/releases/latest/' diff --git a/tools/updater/setup.py b/tools/updater/setup.py index 73b060c90..17b3ccfa5 100644 --- a/tools/updater/setup.py +++ b/tools/updater/setup.py @@ -7,7 +7,7 @@ with open('README.md') as f: setup( name="precursorupdater", - version="0.1.3", + version="0.1.4", author="bunnie", description="Precursor USB Updater", long_description=long_description,