summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-12-28 13:12:30 -0800
committerZac Medico <zmedico@gentoo.org>2010-12-28 13:52:39 -0800
commit38da56353c06e99048295306cebf0d9d5fdd916c (patch)
tree4d3fbc2b09bd165405218785e3921a946dfab6d1
parent416709db131e9fa45cab929445d944928b8935af (diff)
downloadportage-38da56353c06e99048295306cebf0d9d5fdd916c.tar.gz
portage-38da56353c06e99048295306cebf0d9d5fdd916c.tar.bz2
portage-38da56353c06e99048295306cebf0d9d5fdd916c.zip
Use EbuildFetcher for --fetchonly (not --pretend)
-rw-r--r--pym/_emerge/EbuildBuild.py17
1 files changed, 15 insertions, 2 deletions
diff --git a/pym/_emerge/EbuildBuild.py b/pym/_emerge/EbuildBuild.py
index 135f5c95e..00971cacd 100644
--- a/pym/_emerge/EbuildBuild.py
+++ b/pym/_emerge/EbuildBuild.py
@@ -111,14 +111,27 @@ class EbuildBuild(CompositeTask):
settings = self.settings
if opts.fetchonly:
+ if opts.pretend:
fetcher = EbuildFetchonly(
fetch_all=opts.fetch_all_uri,
pkg=pkg, pretend=opts.pretend,
settings=settings)
retval = fetcher.execute()
self.returncode = retval
- self.wait()
- return
+ else:
+ fetcher = EbuildFetcher(
+ config_pool=self.config_pool,
+ fetchall=self.opts.fetch_all_uri,
+ fetchonly=self.opts.fetchonly,
+ background=False,
+ logfile=None,
+ pkg=self.pkg,
+ scheduler=self.scheduler)
+ fetcher.start()
+ self.returncode = fetcher.wait()
+
+ self.wait()
+ return
self._build_dir = EbuildBuildDir(
scheduler=self.scheduler, settings=settings)