aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib/hbc/container
diff options
context:
space:
mode:
authorMarkus Reiter2017-10-04 17:08:35 +0200
committerMarkus Reiter2017-10-04 18:47:55 +0200
commit51a0de6368974eb3476369b819c3823feebebdce (patch)
tree9cd1dc66b7d489042e08577aa372c6afa828594f /Library/Homebrew/cask/lib/hbc/container
parent2c7ef064e4ff0833ac94a4f18f5049ad17c30b7c (diff)
downloadbrew-51a0de6368974eb3476369b819c3823feebebdce.tar.bz2
Directly save artifacts in DSL.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/container')
-rw-r--r--Library/Homebrew/cask/lib/hbc/container/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/container/base.rb b/Library/Homebrew/cask/lib/hbc/container/base.rb
index 4363168e7..78610a1ab 100644
--- a/Library/Homebrew/cask/lib/hbc/container/base.rb
+++ b/Library/Homebrew/cask/lib/hbc/container/base.rb
@@ -20,7 +20,7 @@ module Hbc
unless children.count == 1 &&
!nested_container.directory? &&
- Artifact::NestedContainer.for_cask(@cask).none? &&
+ @cask.artifacts.none? { |a| a.is_a?(Artifact::NestedContainer) } &&
extract_nested_container(nested_container)
children.each do |src|