mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-02 06:50:35 +08:00
Make verbose print again for copying files
This commit is contained in:
parent
d195d2d4cb
commit
4ac70897b5
@ -167,12 +167,14 @@ def mapCPUDependentPath(path):
|
||||
# + copy or diff depending on execution mode
|
||||
def processIfDifferent(new, old, desc, src):
|
||||
global filesProcessed
|
||||
global isVerbose, isDryRun, isEarlyExit
|
||||
# print new + " " + old + " X" + desc + "X " + src
|
||||
if not os.path.exists(old) or \
|
||||
filecmp.cmp(new, old, shallow=False) == False:
|
||||
filesProcessed += 1
|
||||
if isDiffMode == False:
|
||||
# print "Move " + new + " to " + old
|
||||
if isVerbose == True:
|
||||
print "Move " + src + " to " + old
|
||||
if isDryRun == False:
|
||||
shutil.move(new, old)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user