EbuildFetcher: fix fetch to use manifest
authorZac Medico <zmedico@gentoo.org>
Fri, 22 Oct 2010 20:16:00 +0000 (13:16 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 22 Oct 2010 20:16:00 +0000 (13:16 -0700)
If we don't call doebuild_environment() then the 'O' variable is
not set and fetch() doesn't use the manifest.

pym/_emerge/EbuildFetcher.py

index 1abe846d76db4050cb865df1e183710fbb01e0c5..141dc69eabb044e4d286f9b6aa794614e2e8d890 100644 (file)
@@ -46,6 +46,8 @@ class EbuildFetcher(SpawnProcess):
 
                settings = self.config_pool.allocate()
                settings.setcpv(self.pkg)
+               portage.doebuild_environment(ebuild_path, 'fetch',
+                       settings=settings, db=portdb)
 
                if self.prefetch and \
                        self._prefetch_size_ok(uri_map, settings, ebuild_path):