Don't fail on expired keys.
This commit is contained in:
		
							parent
							
								
									c48f35a12e
								
							
						
					
					
						commit
						4e5287e1df
					
				@ -198,7 +198,8 @@ def prepareCore(coin, version, settings, data_dir):
 | 
				
			|||||||
        with open(assert_sig_path, 'rb') as fp:
 | 
					        with open(assert_sig_path, 'rb') as fp:
 | 
				
			||||||
            verified = gpg.verify_file(fp, assert_path)
 | 
					            verified = gpg.verify_file(fp, assert_path)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if verified.username is None:
 | 
					        if verified.valid is False \
 | 
				
			||||||
 | 
					           and not (verified.status == 'signature valid' and verified.key_status == 'signing key has expired'):
 | 
				
			||||||
            raise ValueError('Signature verification failed.')
 | 
					            raise ValueError('Signature verification failed.')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    extractCore(coin, version, settings, bin_dir, release_path)
 | 
					    extractCore(coin, version, settings, bin_dir, release_path)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user