@@ -36,6 +36,7 @@ def auto_update_enabled(cfg):
3636 return False
3737
3838def update_submodule ():
39+ print (f'{ TERMINAL_YELLOW } git submodule update:{ TERMINAL_DEFAULT } ' )
3940 process = subprocess .run (['git' , 'submodule' , 'update' ], stdout = subprocess .PIPE , stderr = subprocess .PIPE )
4041 if process .returncode == 0 :
4142 res = process .stdout .decode ()
@@ -281,15 +282,6 @@ def get_git_upper_tags_remote(current_tag, is_fork):
281282 aborting_update ()
282283 sys .exit (0 )
283284
284- def update_submodules ():
285- print (f'{ TERMINAL_YELLOW } git submodule update:{ TERMINAL_DEFAULT } ' )
286- process = subprocess .run (['git' , 'submodule' , 'update' ], stdout = subprocess .PIPE , stderr = subprocess .PIPE )
287- if process .returncode == 0 :
288- print (process .stdout .decode ())
289- print ()
290- else :
291- print (f'{ TERMINAL_RED } { process .stderr .decode ()} { TERMINAL_DEFAULT } ' )
292-
293285def update_ail (current_tag , list_upper_tags_remote , current_version_path , is_fork ):
294286 print (f'{ TERMINAL_YELLOW } git checkout master:{ TERMINAL_DEFAULT } ' )
295287 process = subprocess .run (['git' , 'checkout' , 'master' ], stdout = subprocess .PIPE , stderr = subprocess .PIPE )
@@ -298,8 +290,6 @@ def update_ail(current_tag, list_upper_tags_remote, current_version_path, is_for
298290 print (process .stdout .decode ())
299291 print ()
300292
301- update_submodules ()
302-
303293 temp_current_tag = current_tag .replace ('v' , '' ).split ('.' )[0 ]
304294 if float (temp_current_tag ) < 5.0 :
305295 roll_back_update ('2c65194b94dab95df9b8da19c88d65239f398355' )
@@ -318,6 +308,8 @@ def update_ail(current_tag, list_upper_tags_remote, current_version_path, is_for
318308 sys .exit (1 )
319309
320310 if pulled :
311+ update_submodule ()
312+
321313 # CHECK IF UPDATER Update
322314 if float (os .stat (UPDATER_FILENAME ).st_mtime ) > UPDATER_LAST_MODIFICATION :
323315 # request updater relaunch
0 commit comments