From 3e99873fa4fa9dec943ca802c9aaf924e0cdebd2 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Mon, 19 Jun 2023 03:47:50 +0100 Subject: [PATCH] formula: fix variations not being generated for instance on_os usage --- Library/Homebrew/formula.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index a80ff7ac25..2e3ee7e9d2 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -2253,7 +2253,7 @@ class Formula os_versions = [*MacOSVersion::SYMBOLS.keys, :linux] - if path.exist? && self.class.on_system_blocks_exist? + if path.exist? && (self.class.on_system_blocks_exist? || @on_system_blocks_exist) formula_contents = path.read os_versions.product(OnSystem::ARCH_OPTIONS).each do |os, arch| bottle_tag = Utils::Bottles::Tag.new(system: os, arch: arch)