self._use_wildcards = copy.deepcopy(clone._use_wildcards)
else:
- # backupenv is for calculated incremental variables.
- self.backupenv = os.environ.copy()
if not local_config:
# Clean up pollution from portage_data so that it doesn't
# interfere with repoman.
self.configlist.append({})
self.configdict["auto"]=self.configlist[-1]
+ # backupenv is used for calculating incremental variables.
+ self.backupenv = os.environ.copy()
self.configlist.append(self.backupenv) # XXX Why though?
self.configdict["backupenv"]=self.configlist[-1]
- myenv = os.environ.copy()
# Don't allow the user to override certain variables in the env
for k in profile_only_variables:
- myenv.pop(k, None)
+ self.backupenv.pop(k, None)
- self.configlist.append(myenv)
+ self.configlist.append(self.backupenv.copy())
self.configdict["env"]=self.configlist[-1]
if not local_config:
# Clean up pollution from portage_data so that it doesn't