EbuildPhase: extract binpkg env for pkg_pretend
authorZac Medico <zmedico@gentoo.org>
Wed, 11 May 2011 23:50:15 +0000 (16:50 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 12 May 2011 05:22:53 +0000 (22:22 -0700)
This will fix bug #366939.

pym/_emerge/EbuildPhase.py

index 5849e7797213cf4ee90a1d328bf7fa79312a8b28..66b6bc8bc75add0a89c094dd77d46ca09bec429c 100644 (file)
@@ -99,7 +99,7 @@ class EbuildPhase(CompositeTask):
                                        os.path.join(self.settings['PKGDIR'],
                                        self.settings['CATEGORY'], self.settings['PF']) + '.tbz2'
 
-               if self.phase == 'prerm':
+               if self.phase in ("pretend", "prerm"):
                        env_extractor = BinpkgEnvExtractor(background=self.background,
                                scheduler=self.scheduler, settings=self.settings)
                        if env_extractor.saved_env_exists():