diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-06-02 05:50:54 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-06-02 05:50:54 -0700 |
commit | 1edf9e3bd37fede61a21d3b6a84542d29d8f3021 (patch) | |
tree | 58a323ba5fb8792baae6a8def80a26f457448e6c /pym/_emerge/create_depgraph_params.py | |
parent | 10f6c6d3c028a509ed943ef76633c72dbbcff7f6 (diff) | |
download | portage-1edf9e3bd37fede61a21d3b6a84542d29d8f3021.tar.gz portage-1edf9e3bd37fede61a21d3b6a84542d29d8f3021.tar.bz2 portage-1edf9e3bd37fede61a21d3b6a84542d29d8f3021.zip |
portageq: add new expand_virtual function
Something like this was requested in bug #157357. Now that Gentoo has
migrated all virtuals to GLEP 37 new-style virtuals, this kind of
function may be helpful in order to resolve the currently installed
provider of a particular virtual in scripts like bootstrap.sh.
Usage:
portageq expand_virtual <root> <atom>
Returns a \n separated list of atoms expanded from a
given virtual atom, excluding blocker atoms. Satisfied
virtual atoms are not included in the output, since
they are expanded to real atoms which are displayed.
Unsatisfied virtual atoms are displayed without
any expansion. The "match" command can be used to
resolve the returned atoms to specific installed
packages.
Example input/output:
$ portageq expand_virtual / virtual/jre
=dev-java/sun-jdk-1.6.0*
$ portageq expand_virtual / virtual/jre:1.5
dev-java/gcj-jdk
$ portageq expand_virtual / virtual/package-manager
sys-apps/portage
$ portageq expand_virtual / virtual/libc
sys-libs/glibc:2.2
$ portageq expand_virtual / virtual/os-headers
sys-kernel/linux-headers:0
Diffstat (limited to 'pym/_emerge/create_depgraph_params.py')
0 files changed, 0 insertions, 0 deletions