Package portage :: Package dep :: Module dep_check
[hide private]

Module dep_check

source code

Classes [hide private]
  _dep_choice
Functions [hide private]
 
_expand_new_virtuals(mysplit, edebug, mydbapi, mysettings, myroot=u'/', trees=None, use_mask=None, use_force=None, **kwargs)
In order to solve bug #141118, recursively expand new-style virtuals so as to collapse one or more levels of indirection, generating an expanded search space.
source code
 
dep_eval(deplist) source code
 
dep_zapdeps(unreduced, reduced, myroot, use_binaries=0, trees=None)
Takes an unreduced and reduced deplist and removes satisfied dependencies.
source code
 
dep_check(depstring, mydbapi, mysettings, use=u'yes', mode=None, myuse=None, use_cache=1, use_binaries=0, myroot=None, trees=None)
Takes a depend string, parses it, and selects atoms.
source code
 
dep_wordreduce(mydeplist, mysettings, mydbapi, mode, use_cache=1)
Reduces the deplist to ones and zeros
source code
Variables [hide private]
  __package__ = 'portage.dep'

Imports: logging, operator, portage, Atom, match_from_list, use_reduce, InvalidDependString, ParseError, _, writemsg, writemsg_level, SlotObject, vercmp, _pkg_str


Function Details [hide private]

_expand_new_virtuals(mysplit, edebug, mydbapi, mysettings, myroot=u'/', trees=None, use_mask=None, use_force=None, **kwargs)

source code 

In order to solve bug #141118, recursively expand new-style virtuals so as to collapse one or more levels of indirection, generating an expanded search space. In dep_zapdeps, new-style virtuals will be assigned zero cost regardless of whether or not they are currently installed. Virtual blockers are supported but only when the virtual expands to a single atom because it wouldn't necessarily make sense to block all the components of a compound virtual. When more than one new-style virtual is matched, the matches are sorted from highest to lowest versions and the atom is expanded to || ( highest match ... lowest match ).

dep_zapdeps(unreduced, reduced, myroot, use_binaries=0, trees=None)

source code 

Takes an unreduced and reduced deplist and removes satisfied dependencies. Returned deplist contains steps that must be taken to satisfy dependencies.

dep_check(depstring, mydbapi, mysettings, use=u'yes', mode=None, myuse=None, use_cache=1, use_binaries=0, myroot=None, trees=None)

source code 

Takes a depend string, parses it, and selects atoms. The myroot parameter is unused (use mysettings['EROOT'] instead).