From: Zac Medico Date: Sat, 21 May 2011 14:22:00 +0000 (-0700) Subject: treewalk: force AUTOCLEAN=yes if libs preserved X-Git-Tag: v2.2.0_alpha35~18 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fcd742f219611c4f80bf4f24c198890f8a44f85f;p=portage.git treewalk: force AUTOCLEAN=yes if libs preserved --- diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 60d52a83e..f53c209b2 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -3443,7 +3443,12 @@ class dblink(object): else: emerge_log = scheduler.dblinkEmergeLog - autoclean = self.settings.get("AUTOCLEAN", "yes") == "yes" + # If we have any preserved libraries then autoclean + # is forced so that preserve-libs logic doesn't have + # to account for the additional complexity of the + # AUTOCLEAN=no mode. + autoclean = self.settings.get("AUTOCLEAN", "yes") == "yes" \ + or preserve_paths if autoclean: emerge_log(_(" >>> AUTOCLEAN: %s") % (slot_atom,))