From 8eaaac2c17194299245ae0c52be43f3604f326b9 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Thu, 4 Dec 2014 13:14:07 +0000 Subject: rubygems: Detect more signed Gems The multi_json Gem wasn't being detected as signed, because the 'signing_key' field is an expression that can evaluate to 'nil' in some cases. In this Gem the 'cert_chain' field was still a standard string. Hopefully checking for the presence of either will catch all cases (and false positives should be harmless anyway). --- baserockimport/exts/rubygems.to_chunk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/baserockimport/exts/rubygems.to_chunk b/baserockimport/exts/rubygems.to_chunk index 323cbb0..f6fe514 100755 --- a/baserockimport/exts/rubygems.to_chunk +++ b/baserockimport/exts/rubygems.to_chunk @@ -63,7 +63,7 @@ class RubyGemChunkMorphologyGenerator < Importer::Base end def is_signed_gem(spec) - spec.signing_key != nil + spec.signing_key != nil || spec.cert_chain != nil end def generate_chunk_morph_for_gem(gemspec_file, spec) -- cgit v1.2.1