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

Collapse All | Expand All

(-)a/pym/_emerge/actions.py (-1 / +3 lines)
Lines 3026-3032 def git_sync_timestamps(portdb, portdir): Link Here
3026
3026
3027
def load_emerge_config(trees=None):
3027
def load_emerge_config(trees=None):
3028
	kwargs = {}
3028
	kwargs = {}
3029
	for k, envvar in (("config_root", "PORTAGE_CONFIGROOT"), ("target_root", "ROOT")):
3029
	for k, envvar in (("config_root", "PORTAGE_CONFIGROOT"),
3030
			  ("target_root", "ROOT"),
3031
			  ("eprefix", "EPREFIX")):
3030
		v = os.environ.get(envvar, None)
3032
		v = os.environ.get(envvar, None)
3031
		if v and v.strip():
3033
		if v and v.strip():
3032
			kwargs[k] = v
3034
			kwargs[k] = v
(-)a/pym/portage/const.py (-7 lines)
Lines 11-22 import os Link Here
11
11
12
# save the original prefix
12
# save the original prefix
13
BPREFIX = EPREFIX
13
BPREFIX = EPREFIX
14
# pick up EPREFIX from the environment if set
15
if "EPREFIX" in os.environ:
16
	if os.environ["EPREFIX"] != "":
17
		EPREFIX = os.path.normpath(os.environ["EPREFIX"])
18
	else:
19
		EPREFIX = os.environ["EPREFIX"]
20
14
21
# ===========================================================================
15
# ===========================================================================
22
# START OF CONSTANTS -- START OF CONSTANTS -- START OF CONSTANTS -- START OF
16
# START OF CONSTANTS -- START OF CONSTANTS -- START OF CONSTANTS -- START OF
23
- 

Return to bug 395633