From: Zac Medico Date: Sat, 24 Feb 2007 12:45:42 +0000 (-0000) Subject: Clean up os.environ["USERLAND"] pollution from the portage_data module so that it... X-Git-Tag: v2.1.2.1~30 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2cdf3c31df50e97c9b871b2518438557c908990b;p=portage.git Clean up os.environ["USERLAND"] pollution from the portage_data module so that it doesn't interfere with repoman. (trunk r6067:6068) svn path=/main/branches/2.1.2/; revision=6069 --- diff --git a/pym/portage.py b/pym/portage.py index 6205d7315..dd479aab0 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -989,6 +989,10 @@ class config: # 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.backupenv.pop("USERLAND", None) def check_var_directory(varname, var): if not os.path.isdir(var): @@ -1231,7 +1235,10 @@ class config: self.configlist.append(os.environ.copy()) self.configdict["env"]=self.configlist[-1] - + if not local_config: + # Clean up pollution from portage_data so that it doesn't + # interfere with repoman. + self.configdict["env"].pop("USERLAND", None) # make lookuplist for loading package.* self.lookuplist=self.configlist[:]