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:24:27 +0000 (13:24 -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 7b2cdb9487ccdd8779bd7b27e4297a04e6583319..cc8051642d8073911671c97db865ff8a71423f6d 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):