diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-03-30 22:03:56 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-03-30 22:03:56 +0000 |
commit | b5f8d723508b43f4c37e1aa46161fcb5ba56450e (patch) | |
tree | 8066b6a5d3fad314b2232e0a22fa944fec709f94 /bin | |
parent | 26e962f5125940b296016f22901b608a5c49a6e2 (diff) | |
download | portage-b5f8d723508b43f4c37e1aa46161fcb5ba56450e.tar.gz portage-b5f8d723508b43f4c37e1aa46161fcb5ba56450e.tar.bz2 portage-b5f8d723508b43f4c37e1aa46161fcb5ba56450e.zip |
Prevent premature expansion of old-style virtuals
inside depgraph.select_files(). (trunk r8306)
svn path=/main/branches/2.1.2/; revision=9638
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/emerge | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/emerge b/bin/emerge index 1397e2bd7..cdf020f44 100755 --- a/bin/emerge +++ b/bin/emerge @@ -1996,6 +1996,16 @@ class depgraph: portage.writemsg("!!! Please check ebuild(5) for full details.\n") portage.writemsg("!!! (Did you specify a version but forget to prefix with '='?)\n") return (0,[]) + # Don't expand categories or old-style virtuals here unless + # necessary. Expansion of old-style virtuals here causes at + # least the following problems: + # 1) It's more difficult to determine which set(s) an atom + # came from, if any. + # 2) It takes away freedom from the resolver to choose other + # possible expansions when necessary. + if "/" in x: + arg_atoms.append((x, x)) + continue try: mykey = None if "--usepkg" in self.myopts: |