Package _emerge :: Module Package :: Class Package
[hide private]

Class Package

source code

                        object --+        
                                 |        
portage.util.SlotObject.SlotObject --+    
                                     |    
                             Task.Task --+
                                         |
                                        Package

Nested Classes [hide private]
  _use_class
  _iuse
Instance Methods [hide private]
 
__hash__(self)
hash(x)
source code
 
__init__(self, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_validate_deps(self)
Validate deps.
source code
 
copy(self)
Create a new instance and copy all attributes defined from __slots__ (including those from inherited classes).
source code
 
_eval_masks(self) source code
 
_eval_visiblity(self, masks) source code
 
get_keyword_mask(self)
returns None, 'missing', or 'unstable'.
source code
 
isHardMasked(self)
returns a bool if the cpv is in the list of expanded pmaskdict[cp] available ebuilds
source code
 
_metadata_exception(self, k, e) source code
 
_invalid_metadata(self, msg_type, msg) source code
 
__unicode__(self) source code
 
__str__(self)
Emulate tuple.__repr__, but don't show 'foo' as u'foo' for unicode strings.
source code
 
_get_pkgsettings(self) source code
 
_init_use(self) source code
 
__len__(self) source code
 
__iter__(self)
This is used to generate mtimedb resume mergelist entries, so we limit it to 4 items for backward compatibility.
source code
 
__lt__(self, other) source code
 
__le__(self, other) source code
 
__gt__(self, other) source code
 
__ge__(self, other) source code

Inherited from Task.Task: __contains__, __eq__, __getitem__, __ne__, __repr__

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]
 
_gen_hash_key(cls, cpv=None, installed=None, onlydeps=None, operation=None, repo_name=None, root_config=None, type_name=None, **kwargs) source code
Class Variables [hide private]
  metadata_keys = [u'BUILD_TIME', u'CHOST', u'COUNTER', u'DEPEND...
  _dep_keys = (u'DEPEND', u'HDEPEND', u'PDEPEND', u'RDEPEND')
  _buildtime_keys = (u'DEPEND', u'HDEPEND')
  _runtime_keys = (u'PDEPEND', u'RDEPEND')
  _use_conditional_misc_keys = (u'LICENSE', u'PROPERTIES', u'RES...
  UNKNOWN_REPO = u'__unknown__'
Properties [hide private]
  eapi
  build_time
  defined_phases
  properties
  provided_cps
  restrict
  metadata
  invalid
  masks
  visible
  validated_atoms
Returns *all* validated atoms from the deps, regardless of USE conditionals, with USE conditionals inside atoms left unevaluated.
  stable
  repo
  repo_priority
  use
  _invalid
  _masks
  _metadata
  _provided_cps
  _raw_metadata
  _use
  _validated_atoms
  _visible
  built
  category
  counter
  cp
  cpv
  cpv_split
  depth
  inherited
  installed
  iuse
  mtime
  onlydeps
  operation
  pf
  root
  root_config
  slot
  slot_atom
  sub_slot
  type_name
  version

Inherited from Task.Task (private): _hash_key, _hash_value

Inherited from object: __class__

Method Details [hide private]

__hash__(self)
(Hashing function)

source code 

hash(x)

Overrides: object.__hash__
(inherited documentation)

__init__(self, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

_validate_deps(self)

source code 

Validate deps. This does not trigger USE calculation since that is expensive for ebuilds and therefore we want to avoid doing it unnecessarily (like for masked packages).

copy(self)

source code 

Create a new instance and copy all attributes defined from __slots__ (including those from inherited classes).

Overrides: portage.util.SlotObject.SlotObject.copy
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

Emulate tuple.__repr__, but don't show 'foo' as u'foo' for unicode strings.

Overrides: object.__str__
(inherited documentation)

__len__(self)
(Length operator)

source code 
Overrides: Task.Task.__len__

__iter__(self)

source code 

This is used to generate mtimedb resume mergelist entries, so we limit it to 4 items for backward compatibility.

Overrides: Task.Task.__iter__

Class Variable Details [hide private]

metadata_keys

Value:
[u'BUILD_TIME',
 u'CHOST',
 u'COUNTER',
 u'DEPEND',
 u'EAPI',
 u'HDEPEND',
 u'INHERITED',
 u'IUSE',
...

_use_conditional_misc_keys

Value:
(u'LICENSE', u'PROPERTIES', u'RESTRICT')

Property Details [hide private]

eapi

Get Method:
unreachable.eapi(self)

build_time

Get Method:
unreachable.build_time(self)

defined_phases

Get Method:
unreachable.defined_phases(self)

properties

Get Method:
unreachable.properties(self)

provided_cps

Get Method:
unreachable.provided_cps(self)

restrict

Get Method:
unreachable.restrict(self)

metadata

Get Method:
unreachable.metadata(self)

invalid

Get Method:
unreachable.invalid(self)

masks

Get Method:
unreachable.masks(self)

visible

Get Method:
unreachable.visible(self)

validated_atoms

Returns *all* validated atoms from the deps, regardless of USE conditionals, with USE conditionals inside atoms left unevaluated.

Get Method:
unreachable.validated_atoms(self) - Returns *all* validated atoms from the deps, regardless of USE conditionals, with USE conditionals inside atoms left unevaluated.

stable

Get Method:
unreachable.stable(self)

repo

Get Method:
unreachable.repo(self)

repo_priority

Get Method:
unreachable.repo_priority(self)

use

Get Method:
unreachable.use(self)