config: Avoid copying _license_manager
authorSebastian Luther <SebastianLuther@gmx.de>
Fri, 27 Aug 2010 07:02:50 +0000 (09:02 +0200)
committerZac Medico <zmedico@gentoo.org>
Fri, 27 Aug 2010 15:42:07 +0000 (08:42 -0700)
commita569acee165f2533c15322e8e0c33f322baae9f2
tree4b3f6bd5d3dabc44367716aa419d5665bad77d4a
parent58d259d79a2d15a1dff1a90ff066615318b35917
config: Avoid copying _license_manager

Strictly speaking _license_manager is not immutable. Users need to ensure that
extract_global_changes() is called right after __init__ (if at all).
It also has the mutable member _undef_lic_groups. It is used to track
undifiend license groups, to not display an error message for the same
group again and again. Because of this, it's useful to share it between
all LicenseManager instances.
pym/portage/package/ebuild/_config/LicenseManager.py
pym/portage/package/ebuild/config.py
pym/portage/tests/ebuild/test_config.py
pym/portage/tests/resolver/ResolverPlayground.py