Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 270407 | Differences between
and this patch

Collapse All | Expand All

(-)depends.py.orig (-2 / +11 lines)
Lines 151-157 Link Here
151
			# Find all packages matching the dependency
151
			# Find all packages matching the dependency
152
			depstr = dependency[0] + dependency[2]
152
			depstr = dependency[0] + dependency[2]
153
			if not depstr in DEPPKGS:
153
			if not depstr in DEPPKGS:
154
				depcpvs = find_packages(depstr)
154
				if QUERY_OPTS['includePortTree'] == True:
155
					#if --all-packages is set, we want 
156
					#the masked packages too
157
					depcpvs = find_packages(depstr, True)
158
				else:
159
					depcpvs = find_packages(depstr, False)
160
					
155
				DEPPKGS[depstr] = depcpvs
161
				DEPPKGS[depstr] = depcpvs
156
			else:
162
			else:
157
				depcpvs = DEPPKGS[depstr]
163
				depcpvs = DEPPKGS[depstr]
Lines 240-245 Link Here
240
		if matches:
246
		if matches:
241
			find_dependencies(matches, None)
247
			find_dependencies(matches, None)
242
		else:
248
		else:
243
			pp.print_error("No matching package found for %s" % query)
249
			if QUERY_OPTS['includePortTree'] == True:
250
				pp.print_error("No matching package found for %s" % query)
251
			else:
252
				pp.print_error("No matching package found or all versions masked for %s" % query)
244
253
245
		first_run = False
254
		first_run = False

Return to bug 270407