Add clarifying comment

This commit is contained in:
Rylan Polster 2023-01-11 13:16:34 -05:00
parent 6468897458
commit 4c8c547027
No known key found for this signature in database
GPG Key ID: 46A744940CFF4D64

View File

@ -240,6 +240,8 @@ module Cask
if json_cask[:depends_on].present? if json_cask[:depends_on].present?
dep_hash = json_cask[:depends_on].to_h do |dep_key, dep_value| dep_hash = json_cask[:depends_on].to_h do |dep_key, dep_value|
# Arch dependencies are encoded like `{ type: :intel, bits: 64 }`
# but `depends_on arch:` only accepts `:intel` or `:arm64`
if dep_key == :arch if dep_key == :arch
next [:arch, :intel] if dep_value.first[:type] == "intel" next [:arch, :intel] if dep_value.first[:type] == "intel"