Commit 697c49c8 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

ignore missing files in chmod() that can happen for '*.pyc' and '*.pyo'.

parent b4ebb407
......@@ -2081,7 +2081,7 @@ def _final_version(parsed_version):
return True
def chmod(path):
if os.path.islink(path):
if os.path.islink(path) or not os.path.exists(path):
return
# give the same permission but write as owner to group and other.
current_perm = os.stat(path).st_mode & \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment