portage.dbapi.cpv_expand module

portage.dbapi.cpv_expand.cpv_expand(mycpv, mydb=None, use_cache=1, settings=None)

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.