From 587c5b07b326c82dc3becf4e4229861c86b1dcfa Mon Sep 17 00:00:00 2001 From: Martin Schimandl Date: Thu, 12 Oct 2017 19:47:45 +0200 Subject: [PATCH] Fix handling of artifact set --- Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb b/Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb index 597ff45970..1ac5856736 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb @@ -67,7 +67,7 @@ module Hbc if value.nil? || (value.respond_to?(:to_a) && value.to_a.empty?) || (value.respond_to?(:to_s) && value.to_s == "{}") || - (artifact_name && !value.key?(artifact_name)) + (artifact_name && !value.include?(artifact_name)) if artifact_name thing = artifact_name