summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-11-02 18:14:00 +0000
committerZac Medico <zmedico@gentoo.org>2008-11-02 18:14:00 +0000
commit7188f78203efd71c4fcf4e6380e5279d1fc55b90 (patch)
treee4bdb65158540a08e18ce03309c1fa29b6201b40
parent17a7e0f55959964e3c35de8a12743070dd9b08cf (diff)
downloadportage-7188f78203efd71c4fcf4e6380e5279d1fc55b90.tar.gz
portage-7188f78203efd71c4fcf4e6380e5279d1fc55b90.tar.bz2
portage-7188f78203efd71c4fcf4e6380e5279d1fc55b90.zip
Remove locking from EbuildFetchPretend since it uses a private temp directory
now (since bug #245231). svn path=/main/trunk/; revision=11800
-rw-r--r--pym/_emerge/__init__.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 5c5eecbe6..d576ee447 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -1607,9 +1607,16 @@ class EbuildFetchPretend(SlotObject):
return retval
def _execute(self):
- build_dir = EbuildBuildDir(pkg=self.pkg, settings=self.settings)
- build_dir.lock()
- build_dir.clean()
+ settings = self.settings
+ pkg = self.pkg
+ root_config = pkg.root_config
+ portdb = root_config.trees["porttree"].dbapi
+ ebuild_path = portdb.findname(pkg.cpv)
+ settings.setcpv(pkg)
+ debug = settings.get("PORTAGE_DEBUG") == "1"
+ use_cache = 1 # always true
+ portage.doebuild_environment(ebuild_path, "fetch",
+ root_config.root, settings, debug, use_cache, portdb)
portage.prepare_build_dirs(self.pkg.root, self.settings, 0)
portdb = self.pkg.root_config.trees["porttree"].dbapi
ebuild_path = portdb.findname(self.pkg.cpv)
@@ -1621,8 +1628,6 @@ class EbuildFetchPretend(SlotObject):
mydbapi=portdb, tree="porttree")
portage.elog.elog_process(self.pkg.cpv, self.settings)
- build_dir.clean()
- build_dir.unlock()
return retval
class AsynchronousTask(SlotObject):