down into dep_check() for better atom preference selection when handling
virtuals and other disjunctive || dependencies.
svn path=/main/branches/2.1.2/; revision=9610
mymerge = []
else:
try:
+ self.trees[myroot]["selective"] = "selective" in self.myparams
if myparent and p_status == "nomerge":
portage_dep._dep_check_strict = False
mycheck = portage.dep_check(depstring, None,
use_binaries=("--usepkgonly" in self.myopts),
myroot=myroot, trees=self.trees)
finally:
+ self.trees[myroot]["selective"] = False
portage_dep._dep_check_strict = True
if not mycheck[0]:
if trees is None:
global db
trees = db
+ selective = trees[myroot].get("selective", False)
writemsg("ZapDeps -- %s\n" % (use_binaries), 2)
if not reduced or unreduced == ["||"] or dep_eval(reduced):
return []
has_mask = False
if hasattr(mydbapi, "xmatch"):
has_mask = bool(mydbapi.xmatch("match-all", atom))
- if (use_binaries or not has_mask):
+ if (selective or use_binaries or not has_mask):
avail_pkg = best(vardb.match(atom))
if avail_pkg:
avail_slot = "%s:%s" % (dep_getkey(atom),