svn path=/main/branches/2.1.7/; revision=15812
# Prefer new-style virtuals over old-style PROVIDE virtuals.
libc_pkg_map = norm_libc_pkgs.copy()
libc_pkg_map.update(virt_libc_pkgs)
+
+ # Only add a dep when the version changes.
+ for libc_pkg in list(libc_pkg_map.values()):
+ if libc_pkg.root_config.trees['vartree'].dbapi.cpv_exists(
+ libc_pkg.cpv):
+ del libc_pkg_map[pkg.root]
+
+ if not libc_pkg_map:
+ return
+
libc_pkgs = set(libc_pkg_map.values())
earlier_libc_pkgs = set()
if libc_pkg:
libc_pkg = libc_pkg[0]
if libc_pkg.operation == 'merge':
- asap_nodes.append(libc_pkg)
+ # Only add a dep when the version changes.
+ if not libc_pkg.root_config.trees[
+ 'vartree'].dbapi.cpv_exists(libc_pkg.cpv):
+ asap_nodes.append(libc_pkg)
def gather_deps(ignore_priority, mergeable_nodes,
selected_nodes, node):