From: Zac Medico Date: Sun, 2 Nov 2008 18:14:00 +0000 (-0000) Subject: Remove locking from EbuildFetchPretend since it uses a private temp directory X-Git-Tag: v2.2_rc14~56 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7188f78203efd71c4fcf4e6380e5279d1fc55b90;p=portage.git Remove locking from EbuildFetchPretend since it uses a private temp directory now (since bug #245231). svn path=/main/trunk/; revision=11800 --- 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):