diff --git a/lib/sort.py b/lib/sort.py index 042b2fa..da997fb 100644 --- a/lib/sort.py +++ b/lib/sort.py @@ -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']