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:
parent
1bea4708c1
commit
4b10383d16
@ -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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user