self._target_eroot = None
def create_trees(config_root=None, target_root=None, trees=None, env=None,
- eprefix=portage.const.EPREFIX):
+ eprefix=None):
if trees is not None:
# clean up any existing portdbapi instances
for myroot in trees:
import io
import warnings
+import portage
from portage import os, eapi_is_supported, _encodings, _unicode_encode
from portage.const import CUSTOM_PROFILE_PATH, GLOBAL_CONFIG_PATH, \
PROFILE_PATH, USER_CONFIG_PATH
self.config_root = config_root
self.target_root = target_root
self._user_config = local_config
-
+
if self.eprefix is None:
- self.eprefix = ""
+ self.eprefix = portage.const.EPREFIX
if self.config_root is None:
self.config_root = self.eprefix + os.sep
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=None, 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
+ @param eprefix: set the EPREFIX variable (default is portage.const.EPREFIX)
@type eprefix: String
@param local_config: Enables loading of local config (/etc/portage); used most by repoman to
ignore local config (keywording and unmasking)