From 0c201be10e4c8564f8e78e5f6b439523d0b02572 Mon Sep 17 00:00:00 2001 From: pleroy Date: Tue, 11 Mar 2025 23:34:36 +0100 Subject: [PATCH] Revert 62908f3b8f90bb6a11e2d428ca0e98ea97ec7cf3 and fix a failure in tests.test_cli.TestCLI.test_without_arch while preserving the possibility to try more archs than the detected one. --- osaca/osaca.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osaca/osaca.py b/osaca/osaca.py index a39d694..9d07cb3 100644 --- a/osaca/osaca.py +++ b/osaca/osaca.py @@ -339,7 +339,9 @@ def inspect(args, output_file=sys.stdout): if args.arch: archs_to_try = [args.arch] else: - archs_to_try = [detected_arch] + archs_to_try = list(DEFAULT_ARCHS.values()) + archs_to_try.remove(detected_arch) + archs_to_try.append(detected_arch) if args.syntax: syntaxes_to_try = [args.syntax] else: