|
|
|
@ -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
|
|
|
|
|
|
|
|
|
|