diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-12-10 04:02:41 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-12-10 04:02:41 +0000 |
commit | 1f23168d7891d68ef7bc1a50fdc9c3f30f53f0ab (patch) | |
tree | 16ed612c01191d6b3729cb81168976a9d6bcbcd2 | |
parent | fbe0e22f981b5614e6bc624a124925e56e88b8f0 (diff) | |
download | portage-1f23168d7891d68ef7bc1a50fdc9c3f30f53f0ab.tar.gz portage-1f23168d7891d68ef7bc1a50fdc9c3f30f53f0ab.tar.bz2 portage-1f23168d7891d68ef7bc1a50fdc9c3f30f53f0ab.zip |
When the Binpkg class has fetched a package in --fetchonly mode, wait until
after the package is verified and injected before returning.
svn path=/main/trunk/; revision=12193
-rw-r--r-- | pym/_emerge/__init__.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 617a81ec1..248d28173 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -3211,11 +3211,7 @@ class Binpkg(CompositeTask): # --getbinpkg is enabled. if fetcher.returncode is not None: self._fetched_pkg = True - if self.opts.fetchonly: - self._final_exit(fetcher) - self.wait() - return - elif self._default_exit(fetcher) != os.EX_OK: + if self._default_exit(fetcher) != os.EX_OK: self.wait() return @@ -3248,6 +3244,12 @@ class Binpkg(CompositeTask): if self._fetched_pkg: self._bintree.inject(pkg.cpv, filename=pkg_path) + if self.opts.fetchonly: + self._current_task = None + self.returncode = os.EX_OK + self.wait() + return + msg = " === (%s of %s) Merging Binary (%s::%s)" % \ (pkg_count.curval, pkg_count.maxval, pkg.cpv, pkg_path) short_msg = "emerge: (%s of %s) %s Merge Binary" % \ |