Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 574470 - app-portage/gentoolkit-0.3.0.9-r2: Spurious output in Query module
Summary: app-portage/gentoolkit-0.3.0.9-r2: Spurious output in Query module
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-11 19:17 UTC by Patrick Lauer
Modified: 2016-02-11 20:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)