diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-10-22 08:16:40 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-10-22 08:16:40 -0700 |
commit | cc0d0ac4493583d43422e67a327e3b29bbe9d0e4 (patch) | |
tree | 1e0bad9d4efda8cca28b6b1b135a075389ae3e83 | |
parent | af83fe6a4fa759733c17e8410de6d95a23cea650 (diff) | |
download | portage-cc0d0ac4493583d43422e67a327e3b29bbe9d0e4.tar.gz portage-cc0d0ac4493583d43422e67a327e3b29bbe9d0e4.tar.bz2 portage-cc0d0ac4493583d43422e67a327e3b29bbe9d0e4.zip |
prepare_build_dirs: tolerate permission issues
-rw-r--r-- | pym/portage/package/ebuild/prepare_build_dirs.py | 8 |
1 files changed, 6 insertions, 2 deletions
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 |