From: Zac Medico Date: Fri, 22 Oct 2010 15:16:40 +0000 (-0700) Subject: prepare_build_dirs: tolerate permission issues X-Git-Tag: v2.1.9.22~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fa5ea1b3d9d61ff803e0eaacc401ecb62b625f01;p=portage.git prepare_build_dirs: tolerate permission issues --- diff --git a/pym/portage/package/ebuild/prepare_build_dirs.py b/pym/portage/package/ebuild/prepare_build_dirs.py index 25e5beb6e..74cf556ea 100644 --- a/pym/portage/package/ebuild/prepare_build_dirs.py +++ b/pym/portage/package/ebuild/prepare_build_dirs.py @@ -72,8 +72,12 @@ def prepare_build_dirs(myroot=None, settings=None, cleanup=False): try: for mydir in mydirs: ensure_dirs(mydir) - apply_secpass_permissions(mydir, - gid=portage_gid, uid=portage_uid, mode=0o70, mask=0) + try: + apply_secpass_permissions(mydir, + gid=portage_gid, uid=portage_uid, mode=0o70, mask=0) + except PortageException: + if not os.path.isdir(mydir): + raise for dir_key in ("PORTAGE_BUILDDIR", "HOME", "PKG_LOGDIR", "T"): """These directories don't necessarily need to be group writable. However, the setup phase is commonly run as a privileged user prior