From: Zac Medico Date: Fri, 14 Aug 2009 20:15:32 +0000 (-0000) Subject: Don't hold references to config instances, since all that's really needed X-Git-Tag: v2.2_rc39~75 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6b0dab687140cff0bc13f6d9cb22a6f2cb7db60f;p=portage.git Don't hold references to config instances, since all that's really needed is $ROOT. svn path=/main/trunk/; revision=14034 --- diff --git a/pym/portage/elog/mod_echo.py b/pym/portage/elog/mod_echo.py index fa6577dc6..445b4308b 100644 --- a/pym/portage/elog/mod_echo.py +++ b/pym/portage/elog/mod_echo.py @@ -10,7 +10,7 @@ from portage.localization import _ _items = [] def process(mysettings, key, logentries, fulltext): global _items - _items.append((mysettings, key, logentries)) + _items.append((mysettings["ROOT"], key, logentries)) def finalize(mysettings=None): """The mysettings parameter is just for backward compatibility since @@ -18,14 +18,14 @@ def finalize(mysettings=None): when it upgrades itself.""" global _items printer = EOutput() - for mysettings, key, logentries in _items: + for root, key, logentries in _items: print - if mysettings["ROOT"] == "/": + if root == "/": printer.einfo(_("Messages for package %s:") % colorize("INFORM", key)) else: printer.einfo(_("Messages for package %(pkg)s merged to %(root)s:") % - {"pkg": colorize("INFORM", key), "root": mysettings["ROOT"]}) + {"pkg": colorize("INFORM", key), "root": root}) print for phase in EBUILD_PHASES: if phase not in logentries: