Browse Source

Изменены права на закрытые репозитории

tags/3.5.7
parent
commit
9f916977cf
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      pym/update/update.py

+ 6
- 0
pym/update/update.py View File

@@ -385,6 +385,12 @@ class Update(MethodsInterface):
if repname not in ("portage", "gentoo"):
layman.add(repname, url, rpath_orig)
finally:
try:
if (path.exists(rpath) and
Git.parse_url(url)[0] == Git.GitProtocol.SSH):
os.chmod(rpath, 0700)
except OSError:
pass
mtime.restore()
return True



Loading…
Cancel
Save