From 4ce87fe766a3cd8e411f471b46fc403a20675856 Mon Sep 17 00:00:00 2001 From: Umberto Baldi Date: Tue, 19 Oct 2021 17:00:26 +0200 Subject: [PATCH] fix `GetPlatform` function ignoring the `All` field --- commands/core/list.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/core/list.go b/commands/core/list.go index 63fc813b9d7..aee1a6b698b 100644 --- a/commands/core/list.go +++ b/commands/core/list.go @@ -45,13 +45,13 @@ func GetPlatforms(req *rpc.PlatformListRequest) ([]*rpc.Platform, error) { } else { installedVersion = platformRelease.Version.String() } - rpcPlatform := commands.PlatformReleaseToRPC(platform.GetLatestRelease()) + rpcPlatform := commands.PlatformReleaseToRPC(platformRelease) rpcPlatform.Installed = installedVersion res = append(res, rpcPlatform) - continue - } - if platformRelease != nil { + } else if platform.ManuallyInstalled { + continue + } else if platformRelease != nil { latest := platform.GetLatestRelease() if latest == nil { return nil, &commands.PlatformNotFound{Platform: platform.String(), Cause: errors.New(tr("the platform has no releases"))}