Make prepare_build_dirs() respect FEATURES=keeptemp.
authorZac Medico <zmedico@gentoo.org>
Fri, 16 Jul 2010 05:14:01 +0000 (22:14 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 16 Jul 2010 05:14:01 +0000 (22:14 -0700)
pym/portage/package/ebuild/prepare_build_dirs.py

index 2bf2e9ee01ea81d0eb399d05960a4b47a42a92d6..dc29eeeb83aec3854378277736022b508accf1bf 100644 (file)
@@ -24,7 +24,7 @@ def prepare_build_dirs(myroot, mysettings, cleanup):
 
        # We enable cleanup when we want to make sure old cruft (such as the old
        # environment) doesn't interfere with the current phase.
-       if cleanup:
+       if cleanup and 'keeptemp' not in mysettings.features:
                clean_dirs.append(mysettings["T"])
 
        for clean_dir in clean_dirs: