Automagic: Sort DTB results by test

This commit is contained in:
Mike Auty
2021-09-08 21:31:45 +01:00
parent 76d319c83a
commit 75feba0099
+1 -1
View File
@@ -206,7 +206,7 @@ class WindowsIntelStacker(interfaces.automagic.StackerLayerInterface):
sections = sections,
progress_callback = progress_callback)
# Flatten the generator
hits = list(hits)
hits = sorted(list(hits), key = lambda x: tests.index(x[0]))
if hits:
# TODO: Decide which to use if there are multiple options
test, page_map_offset = hits[0]