@@ -311,31 +311,31 @@ def update_ail(current_tag, list_upper_tags_remote, current_version_path, is_for
311
311
print (f'{ TERMINAL_RED } Relaunch Launcher { TERMINAL_DEFAULT } ' )
312
312
sys .exit (3 )
313
313
314
- # EMERGENCY UPDATE between two tags
315
- if len (list_upper_tags_remote ) == 1 :
316
- # additional update (between 2 commits on the same version)
317
- additional_update_path = os .path .join (os .environ ['AIL_HOME' ], 'update' , current_tag , 'additional_update.sh' )
318
- if os .path .isfile (additional_update_path ):
319
- print ()
320
- print (f'{ TERMINAL_YELLOW } ------------------------------------------------------------------' )
321
- print ('- Launching Additional Update: -' )
322
- print (f'-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --{ TERMINAL_DEFAULT } ' )
323
- process = subprocess .run (['bash' , additional_update_path ],
324
- stdout = subprocess .PIPE , stderr = subprocess .PIPE )
325
- if process .returncode == 0 :
326
- output = process .stdout .decode ()
327
- print (output )
328
- else :
329
- print (f'{ TERMINAL_RED } { process .stderr .decode ()} { TERMINAL_DEFAULT } ' )
330
- aborting_update ()
331
- sys .exit (1 )
332
-
333
- print ()
334
- print (f'{ TERMINAL_YELLOW } **************** AIL Successfully Updated *****************{ TERMINAL_DEFAULT } ' )
335
- print ()
336
- exit (0 )
337
-
338
- else :
314
+ # # EMERGENCY UPDATE between two tags
315
+ # if len(list_upper_tags_remote) == 1:
316
+ # # additional update (between 2 commits on the same version)
317
+ # additional_update_path = os.path.join(os.environ['AIL_HOME'], 'update', current_tag, 'additional_update.sh')
318
+ # if os.path.isfile(additional_update_path):
319
+ # print()
320
+ # print(f'{TERMINAL_YELLOW}------------------------------------------------------------------')
321
+ # print('- Launching Additional Update: -')
322
+ # print(f'-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --{TERMINAL_DEFAULT}')
323
+ # process = subprocess.run(['bash', additional_update_path],
324
+ # stdout=subprocess.PIPE, stderr=subprocess.PIPE)
325
+ # if process.returncode == 0:
326
+ # output = process.stdout.decode()
327
+ # print(output)
328
+ # else:
329
+ # print(f'{TERMINAL_RED}{process.stderr.decode()}{TERMINAL_DEFAULT}')
330
+ # aborting_update()
331
+ # sys.exit(1)
332
+ #
333
+ # print()
334
+ # print(f'{TERMINAL_YELLOW}**************** AIL Successfully Updated *****************{TERMINAL_DEFAULT}')
335
+ # print()
336
+ # exit(0)
337
+
338
+ if list_upper_tags_remote :
339
339
for v_update in list_upper_tags_remote :
340
340
if is_fork :
341
341
version_tag = v_update
@@ -459,7 +459,7 @@ def aborting_update():
459
459
print ()
460
460
list_upper_tags_remote = get_git_upper_tags_remote (current_tag .replace ('v' , '' ), is_fork )
461
461
# new release
462
- if len (list_upper_tags_remote ) > 1 :
462
+ if len (list_upper_tags_remote ) > 0 :
463
463
print ('New Releases:' )
464
464
if is_fork :
465
465
for upper_tag in list_upper_tags_remote :
0 commit comments