From 3e8d70b67ea14b5c76478d24472e9c71f2339476 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 566861ef0..6e92c9e38 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -3387,7 +3387,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