From e3910056cfa32d4eab5b3959c3d9f8d1c0eebd12 Mon Sep 17 00:00:00 2001 From: pleroy Date: Tue, 11 Mar 2025 23:34:36 +0100 Subject: [PATCH] Revert d77252240017ff30b142c5b777db0e170114f313 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: