bump-formula-pr: ignore --version argument if equal to detected version
This commit is contained in:
parent
b9aa76a9ba
commit
8db863ff7e
@ -194,7 +194,13 @@ module Homebrew
|
|||||||
resource = Resource.new { @url = new_url }
|
resource = Resource.new { @url = new_url }
|
||||||
resource.download_strategy = DownloadStrategyDetector.detect_from_url(new_url)
|
resource.download_strategy = DownloadStrategyDetector.detect_from_url(new_url)
|
||||||
resource.owner = Resource.new(formula.name)
|
resource.owner = Resource.new(formula.name)
|
||||||
resource.version = forced_version if forced_version
|
if forced_version
|
||||||
|
if forced_version == resource.version
|
||||||
|
forced_version = nil
|
||||||
|
else
|
||||||
|
resource.version = forced_version
|
||||||
|
end
|
||||||
|
end
|
||||||
odie "No --version= argument specified!" unless resource.version
|
odie "No --version= argument specified!" unless resource.version
|
||||||
resource_path = resource.fetch
|
resource_path = resource.fetch
|
||||||
tar_file_extensions = %w[.tar .tb2 .tbz .tbz2 .tgz .tlz .txz .tZ]
|
tar_file_extensions = %w[.tar .tb2 .tbz .tbz2 .tgz .tlz .txz .tZ]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user