Merge pull request #11056 from MikeMcQuaid/github_packages_no_linuxbrew_prefix

github_packages: don't allow `linuxbrew-` prefix.
This commit is contained in:
Mike McQuaid 2021-04-07 16:57:51 +01:00 committed by GitHub
commit 2e87adb5f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -182,7 +182,7 @@ class GitHubPackages
formula_name = bottle_hash["formula"]["name"]
_, org, repo, = *bottle_hash["bottle"]["root_url"].match(URL_REGEX)
repo = "homebrew-#{repo}" unless HOMEBREW_OFFICIAL_REPO_PREFIXES_REGEX.match?(repo)
repo = "homebrew-#{repo}" unless repo.start_with?("homebrew-")
version = bottle_hash["formula"]["pkg_version"]
rebuild = bottle_hash["bottle"]["rebuild"]