lib/chef/provider/package/dpkg.rb
# Helper to construct Hash of names-to-package-information.
#
# @return [Hash] Mapping of package names to package information
Helper to construct Hash of names-to-package-information.
Helper to construct Hash of names - to - package - information .
def name_pkginfo
          @name_pkginfo ||=
            begin
              pkginfos = sources.map do |src|
                Chef::Log.debug("#{new_resource} checking #{src} dpkg status")
                status = shell_out_with_timeout!("dpkg-deb -W #{src}")
                status.stdout
              end
              Hash[*package_name_array.zip(pkginfos).flatten]
            end
        end
def name_pkginfo @name_pkginfo ||= begin pkginfos = sources . map do | src | Chef :: Log . debug ( "#{new_resource} checking #{src} dpkg status" ) status = shell_out_with_timeout! ( "dpkg-deb -W #{src}" ) status . stdout end Hash [ * package_name_array . zip ( pkginfos ) . flatten ] end end
Helper to construct Hash of names-to-package-information.
Helper to construct Hash of names - to - package - information .
Mapping of package names to package information
Mapping of package names to package information
Hash