eprefix = portage.const.EPREFIX
settings = portage.config(config_root=config_root,
- local_config=False, env=env, _eprefix=eprefix)
+ local_config=False, env=env, eprefix=eprefix)
default_opts = None
if not options.ignore_default_opts:
env['PORTAGE_DEPCACHEDIR'] = options.cache_dir
settings = portage.config(config_root=config_root,
- local_config=False, env=env, _eprefix=eprefix)
+ local_config=False, env=env, eprefix=eprefix)
if not options.update and not options.update_use_local_desc \
and not options.update_changelogs:
repoman_incrementals = tuple(x for x in \
portage.const.INCREMENTALS if x != 'ACCEPT_KEYWORDS')
eprefix = portage.const.EPREFIX
-repoman_settings = portage.config(local_config=False, _eprefix=eprefix)
+repoman_settings = portage.config(local_config=False, eprefix=eprefix)
repoman_settings.lock()
if repoman_settings.get("NOCOLOR", "").lower() in ("yes", "true") or \
options.pretend = True
# Ensure that PORTDIR_OVERLAY contains the repository corresponding to $PWD.
-repoman_settings = portage.config(local_config=False, _eprefix=eprefix)
+repoman_settings = portage.config(local_config=False, eprefix=eprefix)
repoman_settings['PORTDIR_OVERLAY'] = "%s %s" % \
(repoman_settings.get('PORTDIR_OVERLAY', ''),
portage._shell_quote(portdir_overlay))
# We have to call the config constructor again so
# that config.repositories is initialized correctly.
-repoman_settings = portage.config(local_config=False, _eprefix=eprefix,
+repoman_settings = portage.config(local_config=False, eprefix=eprefix,
env=dict(os.environ, PORTDIR_OVERLAY=repoman_settings['PORTDIR_OVERLAY']))
root = repoman_settings['EROOT']
config_incrementals=repoman_incrementals,
local_config=False,
_unmatched_removal=options.unmatched_removal,
- env=env, _eprefix=eprefix)
+ env=env, eprefix=eprefix)
dep_settings.categories = repoman_settings.categories
if options.without_mask:
dep_settings._mask_manager = \
if eprefix is None:
eprefix = portage.const.EPREFIX
settings = config(config_root=config_root, target_root=target_root,
- env=env, _eprefix=eprefix)
+ env=env, eprefix=eprefix)
settings.lock()
trees._target_eroot = settings['EROOT']
if v is not None:
clean_env[k] = v
settings = config(config_root=None, target_root="/",
- env=clean_env, _eprefix=eprefix)
+ env=clean_env, eprefix=eprefix)
settings.lock()
trees._running_eroot = settings['EROOT']
myroots.append((settings['EROOT'], settings))
def __init__(self, clone=None, mycpv=None, config_profile_path=None,
config_incrementals=None, config_root=None, target_root=None,
- _eprefix=portage.const.EPREFIX, local_config=True, env=None,
+ eprefix=portage.const.EPREFIX, local_config=True, env=None,
_unmatched_removal=False):
"""
@param clone: If provided, init will use deepcopy to copy by value the instance.
@type config_root: String
@param target_root: __init__ override of $ROOT env variable.
@type target_root: String
- @param _eprefix: set the EPREFIX variable (private, used by internal tests)
- @type _eprefix: String
+ @param eprefix: set the EPREFIX variable
+ @type eprefix: String
@param local_config: Enables loading of local config (/etc/portage); used most by repoman to
ignore local config (keywording and unmasking)
@type local_config: Boolean
@type _unmatched_removal: Boolean
"""
- # rename local _eprefix variable for convenience
- eprefix = _eprefix
- del _eprefix
-
# When initializing the global portage.settings instance, avoid
# raising exceptions whenever possible since exceptions thrown
# from 'import portage' or 'import portage.exceptions' statements
"PORTDIR": portdir,
}
fakedb = fakedbapi(settings=config(config_profile_path="",
- env=env, _eprefix=tempdir))
+ env=env, eprefix=tempdir))
for cpv, metadata in packages:
fakedb.cpv_inject(cpv, metadata=metadata)