File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 10
10
import os
11
11
12
12
mods_this_time = []
13
+ mods_lists = []
13
14
14
15
exclusions = [
15
16
# Tuple of (mod_id, mod_id) - these two mods will be incompatible
@@ -49,7 +50,7 @@ def add_mods(mods):
49
50
50
51
51
52
def print_modlist (modlist , master_list ):
52
- print (',' .join (modlist ))
53
+ mods_lists . append (',' .join (modlist ))
53
54
master_list -= set (modlist )
54
55
modlist .clear ()
55
56
@@ -92,7 +93,7 @@ def print_modlist(modlist, master_list):
92
93
if ident in obsolete_mods :
93
94
continue
94
95
mods_this_time .append (os .path .basename (mod .path ))
95
- print (',' .join (mods_this_time ))
96
+ mods_lists . append (',' .join (mods_this_time ))
96
97
mods_this_time .clear ()
97
98
98
99
mods_remaining = set (all_mod_dependencies )
@@ -107,3 +108,6 @@ def print_modlist(modlist, master_list):
107
108
raise RuntimeError (
108
109
'mods remain ({}) but none could be added' .format (mods_remaining ))
109
110
print_modlist (mods_this_time , mods_remaining )
111
+
112
+ for list in sorted (mods_lists , key = len , reverse = True ):
113
+ print (list )
You can’t perform that action at this time.
0 commit comments