diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-04-03 01:18:35 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-04-03 01:18:35 +0000 |
commit | e3ed2e222904594caed1f130f0a4ecce7a6fa389 (patch) | |
tree | c8c8b20b75e97eab8f4fe0e93d5b96fd7039b91c /pym/portage.py | |
parent | d72bfb199cce79ba59cff8d5f88f39d6383b633d (diff) | |
download | portage-e3ed2e222904594caed1f130f0a4ecce7a6fa389.tar.gz portage-e3ed2e222904594caed1f130f0a4ecce7a6fa389.tar.bz2 portage-e3ed2e222904594caed1f130f0a4ecce7a6fa389.zip |
In cpv_expand(), if the virtuals file contains a versioned atom (like
the base profile currently has for virtual/pam), properly remove the
operator and version from the atom before it is passed into
dbapi.cp_list(). (trunk r9683)
svn path=/main/branches/2.1.2/; revision=9684
Diffstat (limited to 'pym/portage.py')
-rw-r--r-- | pym/portage.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py index 30b1e2b19..56c4dab12 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -5655,7 +5655,11 @@ def cpv_expand(mycpv, mydb=None, use_cache=1, settings=None): writemsg("virts[%s]: %s\n" % (str(mykey),virts[mykey]), 1) mykey_orig = mykey[:] for vkey in virts[mykey]: - if mydb.cp_list(vkey,use_cache=use_cache): + # The virtuals file can contain a versioned atom, so + # it may be necessary to remove the operator and + # version from the atom before it is passed into + # dbapi.cp_list(). + if mydb.cp_list(dep_getkey(vkey), use_cache=use_cache): mykey = vkey writemsg("virts chosen: %s\n" % (mykey), 1) break |