diff --git a/resources/DependencyGraphExample.jpg b/resources/DependencyGraphExample.jpg index 2e4b8b0..25c073e 100644 Binary files a/resources/DependencyGraphExample.jpg and b/resources/DependencyGraphExample.jpg differ diff --git a/src/Common/DeprecationInfoDecorator.cs b/src/Common/DeprecationInfoDecorator.cs index 6e1611f..024812d 100644 --- a/src/Common/DeprecationInfoDecorator.cs +++ b/src/Common/DeprecationInfoDecorator.cs @@ -27,7 +27,7 @@ public async Task DecorateAsync(PackageDependencyNode dependencyNode, Cancellati return; } - if (_packageMetadataResourcesAcquired) + if (!_packageMetadataResourcesAcquired) { await InitializeMetadataResource(cancellationToken); _packageMetadataResourcesAcquired = true; @@ -60,7 +60,11 @@ private async Task IsPackageDeprecatedAsync(PackageIdentity packageIdentit { if (result?.Result != null) { - isDeprecated = isDeprecated || await result.Result.GetDeprecationMetadataAsync() != null; + if (!isDeprecated) + { + var deprecationMetadata = await result.Result.GetDeprecationMetadataAsync(); + isDeprecated = isDeprecated || deprecationMetadata != null; + } } }