From: Zac Medico Date: Sat, 27 Nov 2010 07:17:49 +0000 (-0800) Subject: UseManager: convert lists to tuples X-Git-Tag: v2.2.0_alpha6~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=84c1c31f2f80d2d732afd2516ac19e594b80a175;p=portage.git UseManager: convert lists to tuples --- diff --git a/pym/portage/package/ebuild/_config/UseManager.py b/pym/portage/package/ebuild/_config/UseManager.py index ff206e536..0939dadb3 100644 --- a/pym/portage/package/ebuild/_config/UseManager.py +++ b/pym/portage/package/ebuild/_config/UseManager.py @@ -55,7 +55,7 @@ class UseManager(object): pusedict = grabdict_package( os.path.join(location, file_name), recursive=1, allow_wildcard=True, allow_repo=True, verify_eapi=False) for k, v in pusedict.items(): - ret.setdefault(k.cp, {})[k] = v + ret.setdefault(k.cp, {})[k] = tuple(v) return ret @@ -103,9 +103,11 @@ class UseManager(object): for k, v in profile_dict.items(): if juststrings: v = " ".join(v) + else: + v = tuple(v) cpdict.setdefault(k.cp, {})[k] = v ret.append(cpdict) - return ret + return tuple(ret) def getUseMask(self, pkg=None): if pkg is None: