disable topological sort when unnecessary

This commit is contained in:
Patrick Lipka 2022-09-25 01:54:12 +02:00
parent 8d266dfb74
commit 22a8cb03cb
1 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,10 @@ def topological_sort(source):
def sort_libs_by_dependencies(selected_libs):
# no need for sorting in case of only one lib
if len(selected_libs) < 2:
return selected_libs
deplist = []
for lib in selected_libs:
name = lib['name']