--- depends.py.orig 2009-06-03 21:56:30.000000000 +0200 +++ depends.py 2009-06-03 21:59:31.000000000 +0200 @@ -151,7 +151,13 @@ # Find all packages matching the dependency depstr = dependency[0] + dependency[2] if not depstr in DEPPKGS: - depcpvs = find_packages(depstr) + if QUERY_OPTS['includePortTree'] == True: + #if --all-packages is set, we want + #the masked packages too + depcpvs = find_packages(depstr, True) + else: + depcpvs = find_packages(depstr, False) + DEPPKGS[depstr] = depcpvs else: depcpvs = DEPPKGS[depstr] @@ -240,6 +246,9 @@ if matches: find_dependencies(matches, None) else: - pp.print_error("No matching package found for %s" % query) + if QUERY_OPTS['includePortTree'] == True: + pp.print_error("No matching package found for %s" % query) + else: + pp.print_error("No matching package found or all versions masked for %s" % query) first_run = False