[entropy.client.interfaces.dep] temp. workaround virtual pkgs issue causing wrong old-style virtuals to be pulled in

This commit is contained in:
Fabio Erculiani
2010-01-20 21:22:57 +01:00
parent d1c76cb77f
commit 01eec2f43e

View File

@@ -592,6 +592,13 @@ class CalculatorsMixin:
if string_rev == -1:
do_rev_deep = True
# FIXME: find a better way to deal with this,
# the problem is about different old-style (portage shit) virtual
# packages overlapping, so we have to enforce relaxed_deps
pkg_key = self.entropyTools.dep_getkey(dependency)
if pkg_key.startswith("virtual/"):
relaxed_deps = True
# force_unsatisfied is another way to see "deep_deps".
# in this case, we are going to consider valid any dep that
# matches something in installed packages repo.