From: Zac Medico Date: Tue, 21 Sep 2010 09:13:11 +0000 (-0700) Subject: Bug #300455 - Store LicenseManager._license_groups values as frozenset X-Git-Tag: v2.2_rc86~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0e902edf1c3a0d4638da6f915b520471a403c2e6;p=portage.git Bug #300455 - Store LicenseManager._license_groups values as frozenset in order to avoid false warnings about circular group references. --- diff --git a/pym/portage/package/ebuild/_config/LicenseManager.py b/pym/portage/package/ebuild/_config/LicenseManager.py index 498fea275..41f9c7abc 100644 --- a/pym/portage/package/ebuild/_config/LicenseManager.py +++ b/pym/portage/package/ebuild/_config/LicenseManager.py @@ -46,6 +46,9 @@ class LicenseManager(object): os.path.join(loc, "license_groups")).items(): self._license_groups.setdefault(k, []).extend(v) + for k, v in self._license_groups.items(): + self._license_groups[k] = frozenset(v) + def extract_global_changes(self, old=""): ret = old atom_license_map = self._plicensedict.get("*/*")