in lib/omnibus/dependency_information.rb [159:195]
def write_project_license_file
completed_components = []
File.open(project.license_file_path, "w") do |f|
f.puts "============================================================="
f.puts get_project_license_text
f.puts "============================================================="
f.puts ""
f.puts "License details of the components included in the package are listed below:"
f.puts "Note: The following list is generated programmatically and not verified manually."
f.puts " Hence, it is possible that license texts of some of the components included"
f.puts " in the package are missing from this file. If you come across such a component"
f.puts " please open an issue in `https://gitlab.com/gitlab-org/omnibus-gitlab/issues"
f.puts ""
@final_output.each do |component|
f.puts "=========="
f.puts get_component_license_text(component)
completed_components << component[:name]
component[:dependencies].each do |dependency|
next if completed_components.include?(dependency[:name])
f.puts "=========="
f.puts get_component_license_text(dependency)
completed_components << dependency[:name]
end
end
f.puts "=========="
f.puts ""
end
end