Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 574470

Summary: app-portage/gentoolkit-0.3.0.9-r2: Spurious output in Query module
Product: Portage Development Reporter: Patrick Lauer <patrick>
Component: UnclassifiedAssignee: Portage team <dev-portage>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Patrick Lauer gentoo-dev 2016-02-11 19:17:26 UTC
>>> from gentoolkit.query import Query
>>> matches = Query('sys-fs/udev').smart_find()
 * Searching for udev in sys-fs ...


Every time this is called it prints out things, this is not nice if one tries to use gentoolkit as a library.
Comment 1 Brian Dolbec (RETIRED) gentoo-dev 2016-02-11 20:33:21 UTC
	def smart_find(
		self,
		in_installed=True,
		in_porttree=True,
		in_overlay=True,
		include_masked=True,
		show_progress=True,
		no_matches_fatal=True,
		**kwargs
	):

What you want to use instead is:

>>> from gentoolkit.query import Query
>>> matches = Query('sys-fs/udev').smart_find(show_progress=False)