diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-11-26 23:17:49 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-11-26 23:17:49 -0800 |
commit | 84c1c31f2f80d2d732afd2516ac19e594b80a175 (patch) | |
tree | 5b3e4431ee8a3ba522aeca0bc8370217797df6aa /pym/portage | |
parent | d7a8f3d9893c3a6d3ad7732c889ee138c390a238 (diff) | |
download | portage-84c1c31f2f80d2d732afd2516ac19e594b80a175.tar.gz portage-84c1c31f2f80d2d732afd2516ac19e594b80a175.tar.bz2 portage-84c1c31f2f80d2d732afd2516ac19e594b80a175.zip |
UseManager: convert lists to tuples
Diffstat (limited to 'pym/portage')
-rw-r--r-- | pym/portage/package/ebuild/_config/UseManager.py | 6 |
1 files 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: |