Skip to content

Commit 2530ee4

Browse files
committed
Fix version check on nanoCLR update
- Now updating on different version, not higher. ***NO_CI***
1 parent 0909130 commit 2530ee4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

targets/netcore/nanoFramework.nanoCLR.CLI/ClrInstanceOperationsProcessor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Licensed to the .NET Foundation under one or more agreements.
1+
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using System;
@@ -188,7 +188,7 @@ private static async Task<ExitCode> UpdateNanoCLRAsync(
188188
// update if the version is different from the installed one (either the requested target version or the latest available in the repo)
189189
if ((!string.IsNullOrEmpty(targetVersion)
190190
&& (Version.Parse(targetVersion) != installedVersion))
191-
|| (availableFwVersion > installedVersion))
191+
|| (availableFwVersion != installedVersion))
192192
{
193193
HttpResponseMessage response = await _httpClient.GetAsync(packageInfo[0].DownloadUrl);
194194
response.EnsureSuccessStatusCode();

0 commit comments

Comments
 (0)