summaryrefslogtreecommitdiffstats
path: root/pym/portage/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/__init__.py')
-rw-r--r--pym/portage/__init__.py16
1 files changed, 4 insertions, 12 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 6bdf03a78..9fd08e88e 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -4934,18 +4934,10 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0,
use_cache, mydbapi)
clean_phases = ("clean", "cleanrm")
- if mydo in clean_phases or \
- (not noauto and mydo in actionmap_deps and \
- mysettings.get("EMERGE_FROM") == "ebuild"):
- if mydo not in clean_phases:
- mysettings["EBUILD_PHASE"] = "clean"
- try:
- retval = spawn(_shell_quote(ebuild_sh_binary) + " clean",
- mysettings, debug=debug, free=1, logfile=None)
- finally:
- mysettings["EBUILD_PHASE"] = mydo
- if mydo in clean_phases or retval != os.EX_OK:
- return retval
+ if mydo in clean_phases:
+ retval = spawn(_shell_quote(ebuild_sh_binary) + " clean",
+ mysettings, debug=debug, free=1, logfile=None)
+ return retval
# get possible slot information from the deps file
if mydo == "depend":