##// END OF EJS Templates
setup: hide octal literals inside strings so they're portable (issue4554)
Augie Fackler -
r24941:9c194263 default
parent child Browse files
Show More
@@ -408,11 +408,12 b' class hginstalllib(install_lib):'
408 # Persist executable bit (apply it to group and other if user
408 # Persist executable bit (apply it to group and other if user
409 # has it)
409 # has it)
410 if st[stat.ST_MODE] & stat.S_IXUSR:
410 if st[stat.ST_MODE] & stat.S_IXUSR:
411 setmode = 0755
411 setmode = int('0755', 8)
412 else:
412 else:
413 setmode = 0644
413 setmode = int('0644', 8)
414 os.chmod(dst, (stat.S_IMODE(st[stat.ST_MODE]) & ~0777) |
414 m = stat.S_IMODE(st[stat.ST_MODE])
415 setmode)
415 m = (m & ~int('0777', 8)) | setmode
416 os.chmod(dst, m)
416 file_util.copy_file = copyfileandsetmode
417 file_util.copy_file = copyfileandsetmode
417 try:
418 try:
418 install_lib.run(self)
419 install_lib.run(self)
General Comments 0
You need to be logged in to leave comments. Login now