Show More
@@ -14,7 +14,7 b' platform-specific details from the core.' | |||||
14 |
|
14 | |||
15 | from i18n import _ |
|
15 | from i18n import _ | |
16 | import cStringIO, errno, getpass, popen2, re, shutil, sys, tempfile |
|
16 | import cStringIO, errno, getpass, popen2, re, shutil, sys, tempfile | |
17 | import os, threading, time, calendar, ConfigParser, locale, glob |
|
17 | import os, stat, threading, time, calendar, ConfigParser, locale, glob | |
18 |
|
18 | |||
19 | try: |
|
19 | try: | |
20 | set = set |
|
20 | set = set | |
@@ -1047,7 +1047,7 b' else:' | |||||
1047 |
|
1047 | |||
1048 | def set_exec(f, mode): |
|
1048 | def set_exec(f, mode): | |
1049 | s = os.lstat(f).st_mode |
|
1049 | s = os.lstat(f).st_mode | |
1050 | if (s & 0100 != 0) == mode: |
|
1050 | if stat.S_ISLNK(s) or (s & 0100 != 0) == mode: | |
1051 | return |
|
1051 | return | |
1052 | if mode: |
|
1052 | if mode: | |
1053 | # Turn on +x for every +r bit when making a file executable |
|
1053 | # Turn on +x for every +r bit when making a file executable |
General Comments 0
You need to be logged in to leave comments.
Login now