mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-03 03:48:28 +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
|
# + copy or diff depending on execution mode
|
||||||
def processIfDifferent(new, old, desc, src):
|
def processIfDifferent(new, old, desc, src):
|
||||||
global filesProcessed
|
global filesProcessed
|
||||||
|
global isVerbose, isDryRun, isEarlyExit
|
||||||
# print new + " " + old + " X" + desc + "X " + src
|
# print new + " " + old + " X" + desc + "X " + src
|
||||||
if not os.path.exists(old) or \
|
if not os.path.exists(old) or \
|
||||||
filecmp.cmp(new, old, shallow=False) == False:
|
filecmp.cmp(new, old, shallow=False) == False:
|
||||||
filesProcessed += 1
|
filesProcessed += 1
|
||||||
if isDiffMode == False:
|
if isDiffMode == False:
|
||||||
# print "Move " + new + " to " + old
|
if isVerbose == True:
|
||||||
|
print "Move " + src + " to " + old
|
||||||
if isDryRun == False:
|
if isDryRun == False:
|
||||||
shutil.move(new, old)
|
shutil.move(new, old)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user