From 01f7446316695280d5c7c9aab2bdadafecfe74ab Mon Sep 17 00:00:00 2001 From: Rylan Polster <rslpolster@gmail.com> Date: Thu, 20 Aug 2020 10:33:21 -0400 Subject: [PATCH] formula: `odeprecate` license arrays --- Library/Homebrew/formula.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 7f7e4e03e5..f3cc3eb8a4 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -2236,7 +2236,10 @@ class Formula if args.nil? @licenses else - args = { any_of: args } if args.is_a? Array + if args.is_a? Array + odeprecated "`license [...]`", "`license any_of: [...]`" + args = { any_of: args } + end @licenses = args end end -- GitLab