grep is in the base profile so the tester is more likely to have it
installed. The version may be off, but a test result with a different
grep version is still obviously working. An empty result from an
uninstalled file is not so comforting.
Example usage:
>>> from gentoolkit.helpers import FileOwner
>>> findowner = FileOwner()
- >>> findowner(('/usr/bin/vim',))
- [(<Package app-editors/vim-7.2.182>, '/usr/bin/vim')]
+ >>> findowner(('/bin/grep',))
+ [(<Package 'sys-apps/grep-2.12'>, '/bin/grep')]
"""
def __init__(self, is_regex=False, early_out=False, printer_fn=None):
"""Instantiate function.