github_packages: don't allow linuxbrew- prefix.

Given https://github.com/Homebrew/linuxbrew-core/pull/22874 we no longer
need/want to allow a `linuxbrew-` repository prefix.
This commit is contained in:
Mike McQuaid
2021-04-07 16:34:59 +01:00
parent 0cad0dfe55
commit c141dd4480
+1 -1
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"]