availability test in cases where the package does not
appear to be masked. This solves dep selection preference
issues when working without a portage tree.
svn path=/main/trunk/; revision=8988
if avail_pkg:
avail_slot = "%s:%s" % (dep_getkey(atom),
mydbapi.aux_get(avail_pkg, ["SLOT"])[0])
- elif not avail_pkg and use_binaries:
+ elif not avail_pkg and \
+ (use_binaries or not mydbapi.cp_list(dep_getkey(atom))):
# With --usepkgonly, count installed packages as "available".
# Note that --usepkgonly currently has no package.mask support.
# See bug #149816.