diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-08-16 17:34:02 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-08-16 17:34:02 -0700 |
commit | b5124de12fa9372c326d5a87739d2bdbe3203fc6 (patch) | |
tree | fc89c2a05de60b80347a311b684bb16b2620c265 | |
parent | 7482cd2f25989ba544b1143b3a893009a127c061 (diff) | |
download | portage-b5124de12fa9372c326d5a87739d2bdbe3203fc6.tar.gz portage-b5124de12fa9372c326d5a87739d2bdbe3203fc6.tar.bz2 portage-b5124de12fa9372c326d5a87739d2bdbe3203fc6.zip |
Fix ebuild.sh argument for cleanrm phase.
-rw-r--r-- | pym/_emerge/EbuildProcess.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pym/_emerge/EbuildProcess.py b/pym/_emerge/EbuildProcess.py index 2d4d61b1b..c60c2bda9 100644 --- a/pym/_emerge/EbuildProcess.py +++ b/pym/_emerge/EbuildProcess.py @@ -28,9 +28,14 @@ class EbuildProcess(AbstractEbuildProcess): kwargs.update(actionmap[self.phase]["args"]) cmd = actionmap[self.phase]["cmd"] % self.phase else: + if self.phase == 'cleanrm': + ebuild_sh_arg = 'clean' + else: + ebuild_sh_arg = self.phase + cmd = "%s %s" % (_shell_quote(os.path.join( self.settings["PORTAGE_BIN_PATH"], - os.path.basename(EBUILD_SH_BINARY))), self.phase) + os.path.basename(EBUILD_SH_BINARY))), ebuild_sh_arg) try: return doebuild_spawn(cmd, self.settings, **kwargs) finally: |