if clone:
# For immutable attributes, use shallow copy for
# speed and memory conservation.
+ self.depcachedir = clone.depcachedir
self.incrementals = clone.incrementals
+ self.module_priority = clone.module_priority
self.profile_path = clone.profile_path
self.profiles = clone.profiles
self.packages = clone.packages
+ self.usemask_list = clone.usemask_list
self.user_profile_dir = copy.deepcopy(clone.user_profile_dir)
self.local_config = copy.deepcopy(clone.local_config)
copy.deepcopy(clone._local_repo_configs)
self._local_repo_conf_path = \
copy.deepcopy(clone._local_repo_conf_path)
-
- self.module_priority = copy.deepcopy(clone.module_priority)
self.modules = copy.deepcopy(clone.modules)
-
- self.depcachedir = copy.deepcopy(clone.depcachedir)
self.virtuals = copy.deepcopy(clone.virtuals)
self.dirVirtuals = copy.deepcopy(clone.dirVirtuals)
self.treeVirtuals = copy.deepcopy(clone.treeVirtuals)
self.use_defs = copy.deepcopy(clone.use_defs)
self.usemask = copy.deepcopy(clone.usemask)
- self.usemask_list = copy.deepcopy(clone.usemask_list)
self.pusemask_list = copy.deepcopy(clone.pusemask_list)
self.useforce = copy.deepcopy(clone.useforce)
self.useforce_list = copy.deepcopy(clone.useforce_list)
if not isinstance(self.incrementals, tuple):
self.incrementals = tuple(self.incrementals)
- self.module_priority = ["user","default"]
+ self.module_priority = ("user", "default")
self.modules = {}
modules_loader = portage.env.loaders.KeyValuePairFileLoader(
os.path.join(config_root, MODULES_FILE_PATH), None, None)
self._pkeywords_list.append(cpdict)
# get profile-masked use flags -- INCREMENTAL Child over parent
- self.usemask_list = [grabfile(os.path.join(x, "use.mask"),
- recursive=1) for x in self.profiles]
+ self.usemask_list = tuple(
+ tuple(grabfile(os.path.join(x, "use.mask"), recursive=1))
+ for x in self.profiles)
self.usemask = set(stack_lists(
self.usemask_list, incremental=True))
use_defs_lists = [grabdict(os.path.join(x, "use.defaults")) for x in self.profiles]