    # File lib/chef/provider/package/yum.rb, line 622
              def whatprovides(rpmdep)
                unless rpmdep.kind_of?(RPMDependency)
                  raise ArgumentError, "Expecting an RPMDependency object"
                end

                what = []

                packages = lookup_provides(rpmdep.name)
                if packages
                  packages.each do |pkg|
                    pkg.provides.each do |provide|
                      if provide.satisfy?(rpmdep)
                        what << pkg
                      end
                    end
                  end
                end

                return what
              end