summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-10-07 08:52:45 +0000
committerZac Medico <zmedico@gentoo.org>2008-10-07 08:52:45 +0000
commit091acc88e4a13c933009de517fe781a90829338e (patch)
treeea334445fec4e4d91ae7e91f6884835313973a2c
parent846ca7d3589ed0e294b8a97c30726267b306a22c (diff)
downloadportage-091acc88e4a13c933009de517fe781a90829338e.tar.gz
portage-091acc88e4a13c933009de517fe781a90829338e.tar.bz2
portage-091acc88e4a13c933009de517fe781a90829338e.zip
Make EbuildFetcher clean up the build dir after failures in fetchonly mode
since the log is in emerge-fetch.log anyway. svn path=/main/trunk/; revision=11648
-rw-r--r--pym/_emerge/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 6a92fc952..47ad0c68e 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -2290,7 +2290,7 @@ class EbuildFetcher(SpawnProcess):
# created by the pkg_nofetch phase.
if self._build_dir is not None:
portage.elog.elog_process(self.pkg.cpv, self._build_dir.settings)
- if self.returncode == os.EX_OK:
+ if self.fetchonly or self.returncode == os.EX_OK:
try:
shutil.rmtree(self._build_dir.settings["PORTAGE_BUILDDIR"])
except EnvironmentError, e: