Show More
@@ -302,18 +302,13 b' def checklink(path):' | |||
|
302 | 302 | try: |
|
303 | 303 | fullpath = os.path.join(cachedir, target) |
|
304 | 304 | open(fullpath, b'w').close() |
|
305 |
except |
|
|
306 | # pytype: disable=unsupported-operands | |
|
307 | if inst[0] == errno.EACCES: | |
|
308 | # pytype: enable=unsupported-operands | |
|
309 | ||
|
305 | except PermissionError: | |
|
310 | 306 |
|
|
311 | 307 |
|
|
312 | 308 |
|
|
313 | 309 |
|
|
314 | 310 |
|
|
315 | 311 |
|
|
316 | raise | |
|
317 | 312 | try: |
|
318 | 313 | os.symlink(target, name) |
|
319 | 314 | if cachedir is None: |
General Comments 0
You need to be logged in to leave comments.
Login now