repair CaskDependent#runtime_dependencies
This commit is contained in:
parent
6d0c6d0604
commit
e3f42e6f89
@ -17,11 +17,8 @@ class CaskDependent
|
|||||||
@cask.full_name
|
@cask.full_name
|
||||||
end
|
end
|
||||||
|
|
||||||
def runtime_dependencies(ignore_missing: false)
|
def runtime_dependencies
|
||||||
recursive_dependencies(ignore_missing: ignore_missing).reject do |dependency|
|
deps.map { |deps| [deps, deps.to_formula.runtime_dependencies] }.flatten.uniq
|
||||||
tags = dependency.tags
|
|
||||||
tags.include?(:build) || tags.include?(:test)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def deps
|
def deps
|
||||||
|
|||||||
@ -124,7 +124,6 @@ class Dependency
|
|||||||
expanded_deps << dep
|
expanded_deps << dep
|
||||||
else
|
else
|
||||||
next if @expand_stack.include? dep.name
|
next if @expand_stack.include? dep.name
|
||||||
next if dep.tags.include?(:build)
|
|
||||||
|
|
||||||
expanded_deps.concat(expand(dep.to_formula, cache_key: cache_key, ignore_missing: ignore_missing, &block))
|
expanded_deps.concat(expand(dep.to_formula, cache_key: cache_key, ignore_missing: ignore_missing, &block))
|
||||||
expanded_deps << dep
|
expanded_deps << dep
|
||||||
|
|||||||
@ -51,7 +51,7 @@ module InstalledDependents
|
|||||||
dependent.missing_dependencies(hide: keg_names)
|
dependent.missing_dependencies(hide: keg_names)
|
||||||
when Cask::Cask
|
when Cask::Cask
|
||||||
# When checking for cask dependents, we don't care about missing or non-runtime dependencies
|
# When checking for cask dependents, we don't care about missing or non-runtime dependencies
|
||||||
CaskDependent.new(dependent).runtime_dependencies(ignore_missing: true).map(&:to_formula)
|
CaskDependent.new(dependent).runtime_dependencies.map(&:to_formula)
|
||||||
end
|
end
|
||||||
|
|
||||||
required_kegs = required.map do |f|
|
required_kegs = required.map do |f|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user