aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib
diff options
context:
space:
mode:
authorReinhard Pointner2017-05-11 16:26:16 +0800
committerReinhard Pointner2017-05-11 16:26:16 +0800
commitb0987ffb33bbbbd71c0bbf88d2acb24855b75a65 (patch)
treed46718f1cf4de84dc4d0e466cf8e5fb27fa36a60 /Library/Homebrew/cask/lib
parent3668a7abb1af9350b7a2c3816859f5be067a0487 (diff)
downloadbrew-b0987ffb33bbbbd71c0bbf88d2acb24855b75a65.tar.bz2
Support GPG (signed data) container in Homebrew Cask
Diffstat (limited to 'Library/Homebrew/cask/lib')
-rw-r--r--Library/Homebrew/cask/lib/hbc/container/gpg.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/container/gpg.rb b/Library/Homebrew/cask/lib/hbc/container/gpg.rb
index d9504f5cb..311dabc25 100644
--- a/Library/Homebrew/cask/lib/hbc/container/gpg.rb
+++ b/Library/Homebrew/cask/lib/hbc/container/gpg.rb
@@ -6,12 +6,12 @@ module Hbc
class Container
class Gpg < Base
def self.me?(criteria)
- criteria.extension(/GPG/n)
+ criteria.extension(/GPG|SIG/n)
end
def import_key
if @cask.gpg.nil?
- raise CaskError, "Expected to find gpg public key in formula. Cask '#{@cask}' must add: key_id or key_url"
+ raise CaskError, "Expected to find gpg public key in formula. Cask '#{@cask}' must add: 'gpg :embedded, key_id: [Public Key ID]' or 'gpg :embedded, key_url: [Public Key URL]'"
end
args = if @cask.gpg.key_id