From fcd742f219611c4f80bf4f24c198890f8a44f85f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 21 May 2011 07:22:00 -0700 Subject: [PATCH] treewalk: force AUTOCLEAN=yes if libs preserved --- pym/portage/dbapi/vartree.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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,)) -- 2.26.2