diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-10-27 13:49:40 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-10-27 13:49:40 -0700 |
commit | 10202ff80ebd212457db95d76ca1fbc79567bf8d (patch) | |
tree | 0c050c71411d4d752446c6143571374500a3103c /pym/portage/package/ebuild/_config/UseManager.py | |
parent | a68a292f89aeea222421b8db5901bf0c5e7774a1 (diff) | |
download | portage-10202ff80ebd212457db95d76ca1fbc79567bf8d.tar.gz portage-10202ff80ebd212457db95d76ca1fbc79567bf8d.tar.bz2 portage-10202ff80ebd212457db95d76ca1fbc79567bf8d.zip |
LocationsManager: extensible _profile_node object
Use immutable object attrubutes instead of tuples, for extensibility.
Diffstat (limited to 'pym/portage/package/ebuild/_config/UseManager.py')
-rw-r--r-- | pym/portage/package/ebuild/_config/UseManager.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pym/portage/package/ebuild/_config/UseManager.py b/pym/portage/package/ebuild/_config/UseManager.py index bf06bd79d..0506af019 100644 --- a/pym/portage/package/ebuild/_config/UseManager.py +++ b/pym/portage/package/ebuild/_config/UseManager.py @@ -132,11 +132,15 @@ class UseManager(object): return ret def _parse_profile_files_to_tuple_of_tuples(self, file_name, locations): - return tuple(self._parse_file_to_tuple(os.path.join(profile[0], file_name), recursive=profile[1]) + return tuple(self._parse_file_to_tuple( + os.path.join(profile.location, file_name), + recursive=profile.portage1_directories) for profile in locations) def _parse_profile_files_to_tuple_of_dicts(self, file_name, locations, juststrings=False): - return tuple(self._parse_file_to_dict(os.path.join(profile[0], file_name), juststrings, recursive=profile[1]) + return tuple(self._parse_file_to_dict( + os.path.join(profile.location, file_name), juststrings, + recursive=profile.portage1_directories) for profile in locations) def getUseMask(self, pkg=None): |