Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 253467 | Differences between
and this patch

Collapse All | Expand All

(-)pym/portage/__init__.py (-5 / +7 lines)
Lines 914-919 Link Here
914
	virtuals ...etc you look in here.
914
	virtuals ...etc you look in here.
915
	"""
915
	"""
916
916
917
	_env_blacklist = [
918
		"A", "AA", "CATEGORY", "EBUILD_PHASE", "EMERGE_FROM",
919
		"PF", "PKGUSE", "PORTAGE_CONFIGROOT", "PORTAGE_IUSE",
920
		"PORTAGE_USE", "ROOT"
921
	]
922
917
	_environ_whitelist = []
923
	_environ_whitelist = []
918
924
919
	# Whitelisted variables are always allowed to enter the ebuild
925
	# Whitelisted variables are always allowed to enter the ebuild
Lines 1432-1440 Link Here
1432
			self.lookuplist.reverse()
1438
			self.lookuplist.reverse()
1433
1439
1434
			# Blacklist vars that could interfere with portage internals.
1440
			# Blacklist vars that could interfere with portage internals.
1435
			for blacklisted in "CATEGORY", "EBUILD_PHASE", \
1441
			for blacklisted in self._env_blacklist:
1436
				"EMERGE_FROM", "PKGUSE", "PORTAGE_CONFIGROOT", \
1437
				"PORTAGE_IUSE", "PORTAGE_USE", "ROOT":
1438
				for cfg in self.lookuplist:
1442
				for cfg in self.lookuplist:
1439
					cfg.pop(blacklisted, None)
1443
					cfg.pop(blacklisted, None)
1440
			del blacklisted, cfg
1444
			del blacklisted, cfg
Lines 1909-1916 Link Here
1909
		env_configdict = self.configdict["env"]
1913
		env_configdict = self.configdict["env"]
1910
		pkg_configdict = self.configdict["pkg"]
1914
		pkg_configdict = self.configdict["pkg"]
1911
		previous_iuse = pkg_configdict.get("IUSE")
1915
		previous_iuse = pkg_configdict.get("IUSE")
1912
		for k in ("A", "AA", "CATEGORY", "PKGUSE", "PF", "PORTAGE_USE"):
1913
			env_configdict.pop(k, None)
1914
		pkg_configdict["CATEGORY"] = cat
1916
		pkg_configdict["CATEGORY"] = cat
1915
		pkg_configdict["PF"] = pf
1917
		pkg_configdict["PF"] = pf
1916
		if mydb:
1918
		if mydb:

Return to bug 253467