Skip to content
Snippets Groups Projects
Unverified Commit 71124945 authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #11068 from MikeMcQuaid/linuxbrew-core-source

github_packages: fix `source` for Linuxbrew bottles.
parents a5534524 0ff9bf6c
No related branches found
No related tags found
No related merge requests found
......@@ -221,7 +221,15 @@ class GitHubPackages
git_path = bottle_hash["formula"]["tap_git_path"]
git_revision = bottle_hash["formula"]["tap_git_revision"]
source = "https://github.com/#{org}/#{repo}/blob/#{git_revision.presence || "HEAD"}/#{git_path}"
# we're uploading Homebrew/linuxbrew-core bottles to Linuxbrew with a core/
# prefix.
source_org_repo = if org.casecmp("linuxbrew").zero? && repo == "homebrew-core"
"Homebrew/linuxbrew-core"
else
"#{org}/#{repo}"
end
source = "https://github.com/#{source_org_repo}/blob/#{git_revision.presence || "HEAD"}/#{git_path}"
formula_core_tap = formula_full_name.exclude?("/")
documentation = if formula_core_tap
......
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