lib/omnibus/licensing.rb
def license_map
      @license_map ||= begin
        map = {}

        project.library.each do |component|
          # Some of the components do not bundle any software but contain
          # some logic that we use during the build. These components are
          # covered under the project's license and they do not need specific
          # license files.
          next if component.license == :project_license

          map[component.name] = {
            license: component.license,
            license_files: component.license_files,
            version: component.version,
            project_dir: component.project_dir,
          }
        end

        map
      end
    end
def license_map
      @license_map ||= begin
        map = {}

        project.library.each do |component|
          # Some of the components do not bundle any software but contain
          # some logic that we use during the build. These components are
          # covered under the project's license and they do not need specific
          # license files.
          next if component.license == :project_license

          map[component.name] = {
            license: component.license,
            license_files: component.license_files,
            version: component.version,
            project_dir: component.project_dir,
          }
        end

        map
      end
    end
Map that collects information about the licenses of the softwares
 included in the project.

 @example
 {
   ...
   "python" => {
     "license" => "Python",
     "license_files" => "LICENSE",
     "version" => "2.7.9",
     "project_dir" => "/var/cache/omnibus/src/python/Python-2.7.9/"
   },
   ...
 }

 @return [Hash]