Package portage :: Module data
[hide private]

Module data

source code

Classes [hide private]
  _GlobalProxy
Functions [hide private]
str
_target_eprefix()
Calculate the target EPREFIX, which may be different from portage.const.EPREFIX due to cross-prefix support.
source code
str
_target_root()
Calculate the target ROOT.
source code
 
portage_group_warning() source code
 
_unprivileged_mode(eroot, eroot_st) source code
 
_get_global(k) source code
 
_init(settings)
Use config variables like PORTAGE_GRPNAME and PORTAGE_USERNAME to initialize global variables.
source code
Variables [hide private]
  ostype = 'Linux'
  userland = 'GNU'
  lchown = portage._unicode_func_wrapper(lchown)
  uid = 250
  wheelgid = 10
  _initialized_globals = set(['_portage_grpname', '_portage_user...
  __package__ = 'portage'
  _portage_grpname = 'portage'
  _portage_username = 'portage'
  portage_gid = 250
  portage_uid = 250
  secpass = 1
  userpriv_groups = [250]

Imports: os, pwd, grp, platform, sys, portage, _, colorize, first_existing, subprocess, writemsg


Function Details [hide private]

_target_eprefix()

source code 

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.

Returns: str
the target EPREFIX

_target_root()

source code 

Calculate the target ROOT. The result is equivalent to portage.settings["ROOT"], but the calculation is done without the expense of instantiating portage.settings.

Returns: str
the target ROOT (always ends with a slash)

_init(settings)

source code 

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.


Variables Details [hide private]

_initialized_globals

Value:
set(['_portage_grpname',
     '_portage_username',
     'portage_gid',
     'portage_uid',
     'secpass',
     'userpriv_groups'])