Skip to content

Commit 3194fb0

Browse files
committed
fix: [ail updater] remove update between tags
1 parent 32e7fb8 commit 3194fb0

File tree

2 files changed

+27
-34
lines changed

2 files changed

+27
-34
lines changed

bin/Update.py

+26-26
Original file line numberDiff line numberDiff line change
@@ -311,31 +311,31 @@ def update_ail(current_tag, list_upper_tags_remote, current_version_path, is_for
311311
print(f'{TERMINAL_RED} Relaunch Launcher {TERMINAL_DEFAULT}')
312312
sys.exit(3)
313313

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:
339339
for v_update in list_upper_tags_remote:
340340
if is_fork:
341341
version_tag = v_update
@@ -459,7 +459,7 @@ def aborting_update():
459459
print()
460460
list_upper_tags_remote = get_git_upper_tags_remote(current_tag.replace('v', ''), is_fork)
461461
# new release
462-
if len(list_upper_tags_remote) > 1:
462+
if len(list_upper_tags_remote) > 0:
463463
print('New Releases:')
464464
if is_fork:
465465
for upper_tag in list_upper_tags_remote:

update/v6.0.1/Update.sh

+1-8
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,13 @@ echo -e $GREEN"Shutting down AIL ..."$DEFAULT
1717
bash ${AIL_BIN}/LAUNCH.sh -ks
1818
wait
1919

20-
echo -e $GREEN"Updating UI resources..."$DEFAULT
21-
bash ${AIL_BIN}/LAUNCH.sh -ut
22-
wait
23-
24-
echo -e $GREEN"Updating python requirement..."$DEFAULT
25-
pip install -U flask-sock
26-
2720
# SUBMODULES #
2821
git submodule update
2922

3023
echo ""
3124
echo -e $GREEN"Updating AIL VERSION ..."$DEFAULT
3225
echo ""
33-
python ${AIL_HOME}/update/v6.0/Update.py
26+
python ${AIL_HOME}/update/v6.0.1/Update.py
3427
wait
3528
echo ""
3629
echo ""

0 commit comments

Comments
 (0)