[rtems-libbsd commit] Make verbose print again for copying files

Joel Sherrill joel at rtems.org
Fri Mar 30 16:42:12 UTC 2012


Module:    rtems-libbsd
Branch:    master
Commit:    4ac70897b5a43f2368896571a06e9769ceff28c1
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=4ac70897b5a43f2368896571a06e9769ceff28c1

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Fri Mar 30 11:43:45 2012 -0500

Make verbose print again for copying files

---

 freebsd-to-rtems.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/freebsd-to-rtems.py b/freebsd-to-rtems.py
index 2419491..966f04d 100755
--- a/freebsd-to-rtems.py
+++ b/freebsd-to-rtems.py
@@ -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:




More information about the vc mailing list