mirror of
https://github.com/FlightControl-Master/MOOSE_MISSIONS.git
synced 2025-08-15 10:37:46 +00:00
Update UpdateMoose.py
- Added more debug info output
This commit is contained in:
@@ -34,7 +34,7 @@ def update(f: Path, MooseLua: Path, Temp: Path):
|
|||||||
Update the Moose.lua file in given file.
|
Update the Moose.lua file in given file.
|
||||||
"""
|
"""
|
||||||
# Print file name.
|
# Print file name.
|
||||||
print(f"Updating file: {f}")
|
print(f"Checking file: {f}")
|
||||||
|
|
||||||
# Extract all the contents of zip file in different directory
|
# Extract all the contents of zip file in different directory
|
||||||
with ZipFile(f, mode='r') as miz:
|
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.
|
# Check if Moose.lua file is already.
|
||||||
if filecmp.cmp(MooseLua, MooseOld):
|
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:
|
else:
|
||||||
|
|
||||||
|
# Info.
|
||||||
|
print(f"INFO: Updating {MooseOld.name} with current version")
|
||||||
|
|
||||||
# Copy Moose.lua to temp dir.
|
# Copy Moose.lua to temp dir.
|
||||||
copy(MooseLua, MooseOld)
|
copy(MooseLua, MooseOld)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user