disable topological sort when unnecessary
This commit is contained in:
parent
8d266dfb74
commit
22a8cb03cb
|
@ -21,6 +21,10 @@ def topological_sort(source):
|
||||||
|
|
||||||
|
|
||||||
def sort_libs_by_dependencies(selected_libs):
|
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 = []
|
deplist = []
|
||||||
for lib in selected_libs:
|
for lib in selected_libs:
|
||||||
name = lib['name']
|
name = lib['name']
|
||||||
|
|
Loading…
Reference in New Issue