diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-08-14 20:15:32 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-08-14 20:15:32 +0000 |
commit | 6b0dab687140cff0bc13f6d9cb22a6f2cb7db60f (patch) | |
tree | 6af29d88d4818e95363cfe1f358b318e52587444 | |
parent | 6bfc268ad1b2613eea6e85e386128a7c280a3197 (diff) | |
download | portage-6b0dab687140cff0bc13f6d9cb22a6f2cb7db60f.tar.gz portage-6b0dab687140cff0bc13f6d9cb22a6f2cb7db60f.tar.bz2 portage-6b0dab687140cff0bc13f6d9cb22a6f2cb7db60f.zip |
Don't hold references to config instances, since all that's really needed
is $ROOT.
svn path=/main/trunk/; revision=14034
-rw-r--r-- | pym/portage/elog/mod_echo.py | 8 |
1 files changed, 4 insertions, 4 deletions
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: |