From 4b10383d1691408fb2720d2c2ea46fefc0db48f5 Mon Sep 17 00:00:00 2001 From: Frank Date: Fri, 14 Oct 2022 18:15:01 +0200 Subject: [PATCH] Update UpdateMoose.py - Added more debug info output --- .scripts/UpdateMoose.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.scripts/UpdateMoose.py b/.scripts/UpdateMoose.py index edea0470f3..f4c2703185 100644 --- a/.scripts/UpdateMoose.py +++ b/.scripts/UpdateMoose.py @@ -34,7 +34,7 @@ def update(f: Path, MooseLua: Path, Temp: Path): Update the Moose.lua file in given file. """ # Print file name. - print(f"Updating file: {f}") + print(f"Checking file: {f}") # Extract all the contents of zip file in different directory with ZipFile(f, mode='r') as miz: @@ -70,9 +70,12 @@ def update(f: Path, MooseLua: Path, Temp: Path): # Check if Moose.lua file is already. if filecmp.cmp(MooseLua, MooseOld): - print(f"INFO: Moose.lua file is up-to-date ==> Nothing to do!") + print(f"INFO: {MooseOld.name} file is up-to-date ==> Nothing to do!") else: + # Info. + print(f"INFO: Updating {MooseOld.name} with current version") + # Copy Moose.lua to temp dir. copy(MooseLua, MooseOld)