Index: pym/portage/__init__.py =================================================================== --- pym/portage/__init__.py (revision 13840) +++ pym/portage/__init__.py (working copy) @@ -5738,6 +5738,10 @@ mysettings["PORTAGE_LOG_FILE"] = os.path.join( mysettings["T"], "build.log") + if 'unmerge-logs' not in mysettings.features and \ + mysettings.get('EBUILD_PHASE') in ('postrm', 'prerm',): + mysettings.pop('PORTAGE_LOG_FILE', None) + def _doebuild_exit_status_check(mydo, settings): """ Returns an error string if the shell appeared