summaryrefslogtreecommitdiffstats
path: root/pym/_emerge
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-08-23 02:02:06 +0000
committerZac Medico <zmedico@gentoo.org>2008-08-23 02:02:06 +0000
commit0e7a83b0946dc21d461a7c542267e2963354341e (patch)
tree6baebda06aacf81ab8483ec2d9f98d83bade8d30 /pym/_emerge
parentc47730c0f2b6c9270382357d20f4a47322ad5da5 (diff)
downloadportage-0e7a83b0946dc21d461a7c542267e2963354341e.tar.gz
portage-0e7a83b0946dc21d461a7c542267e2963354341e.tar.bz2
portage-0e7a83b0946dc21d461a7c542267e2963354341e.zip
Add a new src_prepare phase function which is called in-between src_unpack
and src_configure (and bump EAPI to 2_pre3). Thanks to Ciaran McCreesh for the suggestion. svn path=/main/trunk/; revision=11454
Diffstat (limited to 'pym/_emerge')
-rw-r--r--pym/_emerge/__init__.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index c6d8c71fd..333043d4d 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -2588,7 +2588,7 @@ class EbuildExecuter(CompositeTask):
__slots__ = ("pkg", "scheduler", "settings") + ("_tree",)
- _phases = ("configure", "compile", "test", "install")
+ _phases = ("prepare", "configure", "compile", "test", "install")
_live_eclasses = frozenset([
"cvs",
@@ -2659,8 +2659,12 @@ class EbuildExecuter(CompositeTask):
pkg = self.pkg
phases = self._phases
- if pkg.metadata["EAPI"] in ("0", "1", "2_pre1"):
- # skip src_configure
+ eapi = pkg.metadata["EAPI"]
+ if eapi in ("0", "1", "2_pre1"):
+ # skip src_prepare and src_configure
+ phases = phases[2:]
+ elif eapi in ("2_pre2",):
+ # skip src_prepare
phases = phases[1:]
for phase in phases: