Merge pull request #3821 from rednoah/master

Fix broken support GPG containers with embedded signatures
This commit is contained in:
Markus Reiter 2018-03-20 16:00:29 +01:00 committed by GitHub
commit 3cd5ae860f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ module Hbc
def initialize(signature, parameters = {})
@parameters = parameters
@signature = URI(signature)
@signature = URI(signature) unless signature == :embedded
parameters.each do |hkey, hvalue|
raise "invalid 'gpg' parameter: '#{hkey.inspect}'" unless VALID_PARAMETERS.include?(hkey)
writer_method = "#{hkey}=".to_sym

View File

@ -49,7 +49,7 @@ module Hbc
end
def verify
return unless available?
return unless available? && cask.gpg.signature != :embedded
import_key
sig = fetch_sig