Merge pull request #7032 from issyl0/bump-formula-pr-new-linux-formula-indicator

bump-formula-pr: Determine Linux-only formulae with `depends_on :linux`
This commit is contained in:
Issy Long 2020-02-13 23:18:03 +00:00 committed by GitHub
commit 516d7e8278
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -259,7 +259,7 @@ module Homebrew
# When bumping a linux-only formula,
# one needs to also delete the sha256 linux bottle line.
# That's because of running test-bot with --keep-old option in linuxbrew-core.
if formula.path.read.include?('# tag "linux"')
if formula.path.read.include?("depends_on :linux")
replacement_pairs << [
/^ sha256 ".+" => :x86_64_linux\n/m,
"\\2",