formula: fix variations not being generated for instance on_os usage

This commit is contained in:
Bo Anderson 2023-06-19 03:47:50 +01:00
parent e986264a3e
commit 3e99873fa4
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

View File

@ -2253,7 +2253,7 @@ class Formula
os_versions = [*MacOSVersion::SYMBOLS.keys, :linux] 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 formula_contents = path.read
os_versions.product(OnSystem::ARCH_OPTIONS).each do |os, arch| os_versions.product(OnSystem::ARCH_OPTIONS).each do |os, arch|
bottle_tag = Utils::Bottles::Tag.new(system: os, arch: arch) bottle_tag = Utils::Bottles::Tag.new(system: os, arch: arch)