From: Zac Medico Date: Tue, 28 Dec 2010 21:12:30 +0000 (-0800) Subject: Use EbuildFetcher for --fetchonly (not --pretend) X-Git-Tag: v2.1.9.27~16 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=38da56353c06e99048295306cebf0d9d5fdd916c;p=portage.git Use EbuildFetcher for --fetchonly (not --pretend) --- 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)