Revert d772522400 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 ffb5f0eb55
commit e3910056cf

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: