lib/chef/provider/package.rb
# Returns an array of all forced packages which are missing candidate versions
#
# @return [Array] names of packages missing candidates
Returns an array of all forced packages which are missing candidate versions
Returns an array of all forced packages which are missing candidate versions
def forced_packages_missing_candidates
        @forced_packages_missing_candidates ||=
          begin
            missing = []
            each_package do |package_name, new_version, current_version, candidate_version, magic_version|
              next if new_version.nil? || current_version.nil?
              if use_magic_version?
                if !magic_version && candidate_version.nil?
                  missing.push(package_name)
                end
              else
                if !version_requirement_satisfied?(current_version, new_version) && candidate_version.nil?
                  missing.push(package_name)
                end
              end
            end
            missing
          end
      end
def forced_packages_missing_candidates @forced_packages_missing_candidates ||= begin missing = [ ] each_package do | package_name , new_version , current_version , candidate_version , magic_version | next if new_version . nil? || current_version . nil? if use_magic_version? if ! magic_version && candidate_version . nil? missing . push ( package_name ) end else if ! version_requirement_satisfied? ( current_version , new_version ) && candidate_version . nil? missing . push ( package_name ) end end end missing end end
Returns an array of all forced packages which are missing candidate versions
Returns an array of all forced packages which are missing candidate versions
names of packages missing candidates
names of packages missing candidates
Array