toolsutils.py
branchstable
changeset 2395 e3093fc12a00
parent 2388 fddb0fd11321
child 2397 cdedc2a32b06
--- a/toolsutils.py	Sat Jul 18 16:17:46 2009 +0200
+++ b/toolsutils.py	Sat Jul 18 22:58:30 2009 +0200
@@ -34,12 +34,12 @@
     """create a directory if it doesn't exist yet"""
     try:
         makedirs(directory)
-        print 'created directory', directory
+        print '-> created directory %s.' % directory
     except OSError, ex:
         import errno
         if ex.errno != errno.EEXIST:
             raise
-        print 'directory %s already exists' % directory
+        print '-> directory %s already exists, no need to create it.' % directory
 
 def create_symlink(source, target):
     """create a symbolic link"""
@@ -56,7 +56,7 @@
 def rm(whatever):
     import shutil
     shutil.rmtree(whatever)
-    print 'removed %s' % whatever
+    print '-> removed %s' % whatever
 
 def show_diffs(appl_file, ref_file, askconfirm=True):
     """interactivly replace the old file with the new file according to
@@ -133,7 +133,7 @@
     if log:
         log('set %s permissions to 0600', filepath)
     else:
-        print 'set %s permissions to 0600' % filepath
+        print '-> set %s permissions to 0600' % filepath
     chmod(filepath, 0600)
 
 def confirm(question, default_is_yes=True):