[Python-checkins] python/dist/src/Lib/distutils/command install_scripts.py,1.10.26.1,1.10.26.2
montanaro@users.sourceforge.net
montanaro@users.sourceforge.net
Fri, 27 Jun 2003 12:37:18 -0700
Update of /cvsroot/python/python/dist/src/Lib/distutils/command
In directory sc8-pr-cvs1:/tmp/cvs-serv10199
Modified Files:
Tag: release22-maint
install_scripts.py
Log Message:
backport of fix from 1.15 to make sure installed scripts have the read bit
set.
Index: install_scripts.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/command/install_scripts.py,v
retrieving revision 1.10.26.1
retrieving revision 1.10.26.2
diff -C2 -d -r1.10.26.1 -r1.10.26.2
*** install_scripts.py 22 Feb 2002 13:19:54 -0000 1.10.26.1
--- install_scripts.py 27 Jun 2003 19:37:16 -0000 1.10.26.2
***************
*** 51,55 ****
self.announce("changing mode of %s" % file)
else:
! mode = ((os.stat(file)[ST_MODE]) | 0111) & 07777
self.announce("changing mode of %s to %o" % (file, mode))
os.chmod(file, mode)
--- 51,55 ----
self.announce("changing mode of %s" % file)
else:
! mode = ((os.stat(file)[ST_MODE]) | 0555) & 07777
self.announce("changing mode of %s to %o" % (file, mode))
os.chmod(file, mode)