summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-08-17 11:41:34 -0700
committerZac Medico <zmedico@gentoo.org>2010-08-17 11:41:34 -0700
commit0649dbd48ed6628b97810b52590dcea28faa449f (patch)
tree92203a75579aee8e9579036f9dfbfec79146cd8b
parent1d5cff7b424635ee081c1e32956f3a6988864028 (diff)
downloadportage-0649dbd48ed6628b97810b52590dcea28faa449f.tar.gz
portage-0649dbd48ed6628b97810b52590dcea28faa449f.tar.bz2
portage-0649dbd48ed6628b97810b52590dcea28faa449f.zip
Use binarytree._ensure_dir() to create the binpkg parent dir.
-rw-r--r--pym/_emerge/EbuildBinpkg.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/pym/_emerge/EbuildBinpkg.py b/pym/_emerge/EbuildBinpkg.py
index 0f7849e90..b7d43ba82 100644
--- a/pym/_emerge/EbuildBinpkg.py
+++ b/pym/_emerge/EbuildBinpkg.py
@@ -4,8 +4,6 @@
from _emerge.CompositeTask import CompositeTask
from _emerge.EbuildPhase import EbuildPhase
from portage import os
-from portage.exception import PermissionDenied
-from portage.util import ensure_dirs
class EbuildBinpkg(CompositeTask):
"""
@@ -21,11 +19,7 @@ class EbuildBinpkg(CompositeTask):
bintree.prevent_collision(pkg.cpv)
binpkg_tmpfile = os.path.join(bintree.pkgdir,
pkg.cpv + ".tbz2." + str(os.getpid()))
- parent_dir = os.path.dirname(binpkg_tmpfile)
- ensure_dirs(parent_dir)
- if not os.access(parent_dir, os.W_OK):
- raise PermissionDenied(
- "access('%s', os.W_OK)" % parent_dir)
+ bintree._ensure_dir(os.path.dirname(binpkg_tmpfile))
self._binpkg_tmpfile = binpkg_tmpfile
self.settings["PORTAGE_BINPKG_TMPFILE"] = self._binpkg_tmpfile