portage.data module¶
- class portage.data._GlobalProxy(name)¶
Bases:
portage.proxy.objectproxy.ObjectProxy
- _get_target()¶
- _name¶
- portage.data._get_global(k)¶
- portage.data._init(settings)¶
Use config variables like PORTAGE_GRPNAME and PORTAGE_USERNAME to initialize global variables. This allows settings to come from make.conf instead of requiring them to be set in the calling environment.
- portage.data._target_eprefix()¶
Calculate the target EPREFIX, which may be different from portage.const.EPREFIX due to cross-prefix support. The result is equivalent to portage.settings[“EPREFIX”], but the calculation is done without the expense of instantiating portage.settings. :rtype: str :return: the target EPREFIX
- portage.data._target_root()¶
Calculate the target ROOT. The result is equivalent to portage.settings[“ROOT”], but the calculation is done without the expense of instantiating portage.settings. :rtype: str :return: the target ROOT (always ends with a slash)
- portage.data._unprivileged_mode(eroot, eroot_st)¶
- portage.data.portage_group_warning()¶