Lines 52-61
WORLD_SETS_FILE = PRIVATE_PATH + "/world_sets"
Link Here
|
52 |
CONFIG_MEMORY_FILE = PRIVATE_PATH + "/config" |
52 |
CONFIG_MEMORY_FILE = PRIVATE_PATH + "/config" |
53 |
NEWS_LIB_PATH = "var/lib/gentoo" |
53 |
NEWS_LIB_PATH = "var/lib/gentoo" |
54 |
|
54 |
|
55 |
# these variables get EPREFIX prepended automagically when they are |
55 |
# The EPREFIX for the current install is hardcoded here, but access to this |
56 |
# translated into their lowercase variants |
56 |
# constant should be minimal, in favor of access via the EPREFIX setting of |
57 |
DEPCACHE_PATH = "/var/cache/edb/dep" |
57 |
# a config instance (since it's possible to contruct a config instance with |
58 |
GLOBAL_CONFIG_PATH = "/usr/share/portage/config" |
58 |
# a different EPREFIX). |
|
|
59 |
EPREFIX="" |
60 |
|
61 |
# pick up EPREFIX from the environment if set |
62 |
if "PORTAGE_OVERRIDE_EPREFIX" in os.environ: |
63 |
EPREFIX = os.environ["PORTAGE_OVERRIDE_EPREFIX"] |
64 |
if EPREFIX: |
65 |
EPREFIX = os.path.normpath(EPREFIX) |
66 |
|
67 |
# these variables are based on the prefix of the portage installation, not |
68 |
# the prefix of the installed packages, and as such use the builtin EPREFIX |
69 |
# rather than the EPREFIX setting in a config instance. |
70 |
DEPCACHE_PATH = EPREFIX + "/var/cache/edb/dep" |
71 |
GLOBAL_CONFIG_PATH = EPREFIX + "/usr/share/portage/config" |
59 |
|
72 |
|
60 |
# these variables are not used with target_root or config_root |
73 |
# these variables are not used with target_root or config_root |
61 |
# NOTE: Use realpath(__file__) so that python module symlinks in site-packages |
74 |
# NOTE: Use realpath(__file__) so that python module symlinks in site-packages |
Lines 152-170
MANIFEST2_REQUIRED_HASH = "SHA256"
Link Here
|
152 |
|
165 |
|
153 |
MANIFEST2_IDENTIFIERS = ("AUX", "MISC", "DIST", "EBUILD") |
166 |
MANIFEST2_IDENTIFIERS = ("AUX", "MISC", "DIST", "EBUILD") |
154 |
|
167 |
|
155 |
# The EPREFIX for the current install is hardcoded here, but access to this |
|
|
156 |
# constant should be minimal, in favor of access via the EPREFIX setting of |
157 |
# a config instance (since it's possible to contruct a config instance with |
158 |
# a different EPREFIX). Therefore, the EPREFIX constant should *NOT* be used |
159 |
# in the definition of any other constants within this file. |
160 |
EPREFIX="" |
161 |
|
162 |
# pick up EPREFIX from the environment if set |
163 |
if "PORTAGE_OVERRIDE_EPREFIX" in os.environ: |
164 |
EPREFIX = os.environ["PORTAGE_OVERRIDE_EPREFIX"] |
165 |
if EPREFIX: |
166 |
EPREFIX = os.path.normpath(EPREFIX) |
167 |
|
168 |
VCS_DIRS = ("CVS", "RCS", "SCCS", ".bzr", ".git", ".hg", ".svn") |
168 |
VCS_DIRS = ("CVS", "RCS", "SCCS", ".bzr", ".git", ".hg", ".svn") |
169 |
|
169 |
|
170 |
# =========================================================================== |
170 |
# =========================================================================== |