homebrew: remove linuxbrew-core/bottles

This commit is contained in:
Zenithal 2021-10-21 16:29:28 +08:00
parent 7bfaa3b350
commit 755d46f4ec
No known key found for this signature in database
GPG Key ID: 1189C659F3D04C1C
2 changed files with 1 additions and 7 deletions

View File

@ -79,12 +79,6 @@ if __name__ == "__main__":
for file in b: for file in b:
sha256 = b[file]["sha256"] sha256 = b[file]["sha256"]
# dark magic for linuxbrew-bottles
if "https://formulae.brew.sh/api/formula-linux.json" == HOMEBREW_BOTTLE_DOMAIN and\
"x86_64_linux" not in file:
print(f"Ignoring {file}", flush=True)
continue
print(f"Downloading {file}", flush=True) print(f"Downloading {file}", flush=True)
dst_file = WORKING_DIR / file dst_file = WORKING_DIR / file
dst_tmp_file = TMP_DIR / file dst_tmp_file = TMP_DIR / file

View File

@ -22,7 +22,7 @@ function update_homebrew_git() {
} }
UPSTREAM_BASE=${TUNASYNC_UPSTREAM_URL:-"https://github.com/Homebrew"} UPSTREAM_BASE=${TUNASYNC_UPSTREAM_URL:-"https://github.com/Homebrew"}
brews=("brew" "homebrew-core" "homebrew-cask" "homebrew-cask-fonts" "homebrew-cask-drivers" "homebrew-cask-versions" "linuxbrew-core" "install" "homebrew-command-not-found") brews=("brew" "homebrew-core" "homebrew-cask" "homebrew-cask-fonts" "homebrew-cask-drivers" "homebrew-cask-versions" "install" "homebrew-command-not-found")
total_size=0 total_size=0
for brew in ${brews[@]}; do for brew in ${brews[@]}; do