'Returns a list of packages that provides a given capability.
:param name: Capability name (eg, \'foo\').'

def provides(self, name):

    if (self.yum_base is None):
        logging.error("The    method    'provides'    is    disabled,    yum    module    is    required    for    this    operation")
        return None
    try:
        d_provides = self.yum_base.searchPackageProvides(args=[name])
    except Exception as e:
        logging.error('Error    searching    for    package    that    provides    %s:    %s', name, e)
        d_provides = []
    provides_list = [key for key in d_provides]
    if provides_list:
        return str(provides_list[0])
    else:
        return None
