Don't hold references to config instances, since all that's really needed
authorZac Medico <zmedico@gentoo.org>
Fri, 14 Aug 2009 20:15:32 +0000 (20:15 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 14 Aug 2009 20:15:32 +0000 (20:15 -0000)
is $ROOT.

svn path=/main/trunk/; revision=14034

pym/portage/elog/mod_echo.py

index fa6577dc6d59f8f397d56bd3208aaf22fb5f8544..445b4308bf54985a6322b98f6d5c50a7b264e1b1 100644 (file)
@@ -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: