Merge pull request #13939 from apainintheneck/rm-unused-fetch-cask-function
Remove unused function from bump-cask-pr
This commit is contained in:
commit
7b00b2b1d7
@ -188,19 +188,6 @@ module Homebrew
|
|||||||
GitHub.create_bump_pr(pr_info, args: args)
|
GitHub.create_bump_pr(pr_info, args: args)
|
||||||
end
|
end
|
||||||
|
|
||||||
def fetch_cask(contents, config: nil)
|
|
||||||
cask = Cask::CaskLoader.load(contents)
|
|
||||||
cask.config = config if config.present?
|
|
||||||
old_hash = cask.sha256.to_s
|
|
||||||
|
|
||||||
cask_download = Cask::Download.new(cask, quarantine: true)
|
|
||||||
download = cask_download.fetch(verify_download_integrity: false)
|
|
||||||
Utils::Tar.validate_file(download)
|
|
||||||
new_hash = download.sha256
|
|
||||||
|
|
||||||
[old_hash, new_hash]
|
|
||||||
end
|
|
||||||
|
|
||||||
def check_open_pull_requests(cask, args:)
|
def check_open_pull_requests(cask, args:)
|
||||||
tap_remote_repo = cask.tap.remote_repo || cask.tap.full_name
|
tap_remote_repo = cask.tap.remote_repo || cask.tap.full_name
|
||||||
GitHub.check_for_duplicate_pull_requests(cask.token, tap_remote_repo,
|
GitHub.check_for_duplicate_pull_requests(cask.token, tap_remote_repo,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user