diff --git a/Sparkle/SUPlainInstaller.m b/Sparkle/SUPlainInstaller.m index 1aeb6317..0846f8fd 100644 --- a/Sparkle/SUPlainInstaller.m +++ b/Sparkle/SUPlainInstaller.m @@ -32,14 +32,11 @@ NSError *error = nil; NSString *oldPath = [host bundlePath]; NSString *tempName = [self temporaryNameForPath:[host installationPath]]; - BOOL hostIsCodeSigned = [SUCodeSigningVerifier applicationAtPathIsCodeSigned:oldPath]; BOOL result = [self copyPathWithAuthentication:path overPath:installationPath temporaryName:tempName error:&error]; if (result) { - // If the host is code signed, then the replacement should be be too (and the signature should be valid). - BOOL needToCheckCodeSignature = (hostIsCodeSigned || [SUCodeSigningVerifier applicationAtPathIsCodeSigned:installationPath]); - if (needToCheckCodeSignature) { + if ([SUCodeSigningVerifier applicationAtPathIsCodeSigned:installationPath]) { result = [SUCodeSigningVerifier codeSignatureIsValidAtPath:installationPath error:&error]; } }