diff --git a/Library/Homebrew/formula_creator.rb b/Library/Homebrew/formula_creator.rb index 2e18398990475..75ddba1483946 100644 --- a/Library/Homebrew/formula_creator.rb +++ b/Library/Homebrew/formula_creator.rb @@ -75,6 +75,7 @@ def generate! metadata = GitHub.repository(@user, @name) @desc = metadata["description"] @homepage = metadata["homepage"] + @license = metadata["license"]["spdx_id"] if metadata["license"] rescue GitHub::HTTPNotFoundError # If there was no repository found assume the network connection is at # fault rather than the input URL.