Add clarifying comment
This commit is contained in:
parent
6468897458
commit
4c8c547027
@ -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"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user