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

                x = self

                # Easy!
                if x.name != y.name
                  return false
                end

                # Partial compare
                #
                # eg: x.version 2.3 == y.version 2.3-1
                sense = x.version.partial_compare(y.version)

                # Thanks to rpmdsCompare() rpmds.c
                if sense < 0 and (x.flag == :> || x.flag == :>=) || (y.flag == :<= || y.flag == :<)
                  return true
                elsif sense > 0 and (x.flag == :< || x.flag == :<=) || (y.flag == :>= || y.flag == :>)
                  return true
                elsif sense == 0 and (
                  ((x.flag == :== or x.flag == :<= or x.flag == :>=) and (y.flag == :== or y.flag == :<= or y.flag == :>=)) or
                  (x.flag == :< and y.flag == :<) or
                  (x.flag == :> and y.flag == :>)
                )
                  return true
                end

                return false
              end