[Checkins] SVN: Zope/trunk/src/Zope2/utilities/copyzopeskel.py added code to fix the permission of the generated files in 'bin'

Andreas Jung andreas at andreas-jung.com
Thu Feb 19 09:41:21 EST 2009


Log message for revision 96753:
  added code to fix the permission of the generated files in 'bin'
  

Changed:
  U   Zope/trunk/src/Zope2/utilities/copyzopeskel.py

-=-
Modified: Zope/trunk/src/Zope2/utilities/copyzopeskel.py
===================================================================
--- Zope/trunk/src/Zope2/utilities/copyzopeskel.py	2009-02-19 14:25:55 UTC (rev 96752)
+++ Zope/trunk/src/Zope2/utilities/copyzopeskel.py	2009-02-19 14:41:21 UTC (rev 96753)
@@ -186,6 +186,13 @@
         print >>sys.stderr, msg
         sys.exit(1)
 
+    # fix permission in 'bin' directory
+    bin_dir = os.path.join(targetdir, 'bin')
+    for fname in os.listdir(bin_dir):
+        fullname = os.path.join(bin_dir, fname)
+        os.chmod(fullname, 0700)
+
+
 CVS_DIRS = [os.path.normcase("CVS"), os.path.normcase(".svn")]
 
 def copydir((targetdir, replacements, uid, gid), sourcedir, names):



More information about the Checkins mailing list