diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-09-21 02:13:11 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-09-21 02:13:11 -0700 |
commit | 0e902edf1c3a0d4638da6f915b520471a403c2e6 (patch) | |
tree | 9bb9ea80b890a0eefc0d0eedefaa5bb4bd0c1820 | |
parent | ab65fe02da2de2c619a66402e93e63043979d2c5 (diff) | |
download | portage-0e902edf1c3a0d4638da6f915b520471a403c2e6.tar.gz portage-0e902edf1c3a0d4638da6f915b520471a403c2e6.tar.bz2 portage-0e902edf1c3a0d4638da6f915b520471a403c2e6.zip |
Bug #300455 - Store LicenseManager._license_groups values as frozenset
in order to avoid false warnings about circular group references.
-rw-r--r-- | pym/portage/package/ebuild/_config/LicenseManager.py | 3 |
1 files changed, 3 insertions, 0 deletions
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("*/*") |