From 84c1c31f2f80d2d732afd2516ac19e594b80a175 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 26 Nov 2010 23:17:49 -0800 Subject: [PATCH] UseManager: convert lists to tuples --- pym/portage/package/ebuild/_config/UseManager.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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: -- 2.26.2