Skip to content

Commit b493d57

Browse files
authored
Merge pull request #1001 from ilyalopatkin/stop-downloading-older-updates
Stop downloading remote updates that are lower than the current version
2 parents 4f172fc + 21829a3 commit b493d57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Squirrel/UpdateInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public static UpdateInfo Create(ReleaseEntry currentVersion, IEnumerable<Release
6363
return new UpdateInfo(null, new[] { latestFull }, packageDirectory);
6464
}
6565

66-
if (currentVersion.Version == latestFull.Version) {
66+
if (currentVersion.Version >= latestFull.Version) {
6767
return new UpdateInfo(currentVersion, Enumerable.Empty<ReleaseEntry>(), packageDirectory);
6868
}
6969

0 commit comments

Comments
 (0)