Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
/ NuGet.Jobs Public archive

Commit

Permalink
Add the package validation state before adding the signature records (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
joelverhagen committed Feb 26, 2018
1 parent 11c84fc commit 6c62790
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,13 @@ private async Task<SignatureValidatorResult> HandleSignedPackageAsync(
new ClientSigningVerificationFailure(ex.Code.ToString(), ex.Message));
}

// Mark this package as signed. This needs to happen before the extraction due to a foreign key constraint.
var result = await AcceptAsync(packageKey, message, PackageSigningStatus.Valid);

// Extract all of the signature artifacts and persist them.
await _signaturePartsExtractor.ExtractAsync(packageKey, signedPackageReader, cancellationToken);

// Mark this package as signed.
return await AcceptAsync(packageKey, message, PackageSigningStatus.Valid);
return result;
}

private async Task<SignatureValidatorResult> GetVerifyResult(
Expand Down

0 comments on commit 6c62790

Please sign in to comment.