Skip to content
Snippets Groups Projects
Unverified Commit f4f4d911 authored by Rylan Polster's avatar Rylan Polster Committed by GitHub
Browse files

Merge pull request #8139 from Rylan12/bump-revision-fix

bump-revision: fixes for new style and license dsl
parents a8fdb8c1 bdc8438f
No related branches found
No related tags found
No related merge requests found
......@@ -42,9 +42,14 @@ module Homebrew
end
old = if formula.license
license_string = if formula.license.length > 1
formula.license
else
"\"#{formula.license.first}\""
end
# insert replacement revision after license
<<~EOS
license "#{formula.license}"
license #{license_string}
EOS
elsif formula.path.read.include?("stable do\n")
# insert replacement revision after homepage
......@@ -59,7 +64,7 @@ module Homebrew
else
# insert replacement revision after :revision
<<~EOS
:revision => "#{formula_spec.specs[:revision]}"
revision: "#{formula_spec.specs[:revision]}"
EOS
end
replacement = old + " revision 1\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment