Package portage :: Package dbapi :: Module cpv_expand
[hide private]

Module cpv_expand

source code

Functions [hide private]
 
cpv_expand(mycpv, mydb=None, use_cache=1, settings=None)
Given a string (packagename or virtual) expand it into a valid cat/package string.
source code
Variables [hide private]
  __package__ = 'portage.dbapi'

Imports: portage, AmbiguousPackageName, _, writemsg, _pkgsplit


Function Details [hide private]

cpv_expand(mycpv, mydb=None, use_cache=1, settings=None)

source code 

Given a string (packagename or virtual) expand it into a valid cat/package string. Virtuals use the mydb to determine which provided virtual is a valid choice and defaults to the first element when there are no installed/available candidates.