Skip to content

Commit 4f1d5ca

Browse files
committed
Undo dev changes
1 parent 2ec8c25 commit 4f1d5ca

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
setlocal EnableDelayedExpansion
22
set "SOURCE=\\isis.cclrc.ac.uk\inst$\Kits$\CompGroup\ICP\Releases"
3-
REM call "%~dp0define_latest_genie_python.bat"
3+
call "%~dp0define_latest_genie_python.bat"
44
IF %errorlevel% neq 0 EXIT /b %errorlevel%
55

66
set "STOP_IBEX=C:\Instrument\Apps\EPICS\stop_ibex_server"
77
set "START_IBEX=C:\Instrument\Apps\EPICS\start_ibex_server"
88

9-
REM start /wait cmd /c "%STOP_IBEX%"
9+
start /wait cmd /c "%STOP_IBEX%"
1010

11-
call c:\instrument\apps\python3\python.exe "%~dp0IBEX_upgrade.py" --release_dir "%SOURCE%" --release_suffix "%SUFFIX%" --confirm_step developer_update
11+
call "%LATEST_PYTHON%" "%~dp0IBEX_upgrade.py" --release_dir "%SOURCE%" --release_suffix "%SUFFIX%" --confirm_step developer_update
1212
IF ERRORLEVEL 1 (
1313
set errcode = %ERRORLEVEL%
1414
call "%~dp0remove_genie_python.bat" %LATEST_PYTHON_DIR%
1515
EXIT /b !errcode!
1616
)
1717

18-
REM start /wait cmd /c "%START_IBEX%"
19-
REM call "%~dp0remove_genie_python.bat" %LATEST_PYTHON_DIR%
18+
start /wait cmd /c "%START_IBEX%"
19+
call "%~dp0remove_genie_python.bat" %LATEST_PYTHON_DIR%

installation_and_upgrade/ibex_install_utils/install_tasks.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,6 @@ def run_setup_log_rotation(self) -> None:
316316

317317
def run_developer_update(self) -> None:
318318
"""Update all the developer tools to latest version"""
319-
self._backup_tasks.backup_old_directories()
320319
self._mysql_tasks.install_mysql(force=False)
321320
self._system_tasks.check_java_installation()
322321
self._system_tasks.install_or_upgrade_git()

installation_and_upgrade/ibex_install_utils/tasks/backup_tasks.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def backup_old_directories(self) -> None:
7878
os.mkdir(BACKUP_DIR)
7979

8080
# move old backups to create space
81-
# self._move_old_backups_to_share()
81+
self._move_old_backups_to_share()
8282

8383
# Move the folders
8484
for path in DIRECTORIES_TO_BACKUP:
@@ -181,11 +181,7 @@ def _backup_dir(
181181

182182
print(f"Attempting to backup {src} to zipfile at {dst}")
183183
with zipfile.ZipFile(
184-
dst,
185-
"w",
186-
compression=zipfile.ZIP_DEFLATED,
187-
compresslevel=1,
188-
strict_timestamps=False
184+
dst, "w", compression=zipfile.ZIP_DEFLATED, compresslevel=1, strict_timestamps=False
189185
) as zf:
190186
for src_path, dirs, src_filenames in os.walk(src, topdown=True):
191187
if ignore is not None:
@@ -205,7 +201,7 @@ def _backup_dir(
205201

206202
if not copy:
207203
print(f"Removing {src} after backup")
208-
# shutil.rmtree(src)
204+
shutil.rmtree(src)
209205

210206
except FileNotFoundError:
211207
# Source file is not present

0 commit comments

Comments
 (0)