Revert 62908f3b8f and fix a failure in tests.test_cli.TestCLI.test_without_arch while preserving the possibility to try more archs than the detected one.

This commit is contained in:
pleroy
2025-03-11 23:34:36 +01:00
parent 2cf2bf5cec
commit 0c201be10e

View File

@@ -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: