Skip to content

Commit

Permalink
Don't try and downgrade.
Browse files Browse the repository at this point in the history
  • Loading branch information
stajs committed Oct 12, 2015
1 parent cf2d59c commit 03bf4b3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions LIC.Malone.Client.Desktop/ViewModels/AppViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,12 @@ private async void CheckForUpdates()
.First()
.Version;

if (currentVersion > latestVersion)
{
MaloneVersion = string.Format("Only found earlier version v{0}, staying on v{1}", latestVersion, currentVersion);
return;
}

MaloneVersion = string.Format("Updating to v{0}", latestVersion);

var releases = updateInfo.ReleasesToApply;
Expand Down
6 changes: 3 additions & 3 deletions Solution Items/SharedAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
// http://blog.ploeh.dk/2013/12/10/semantic-versioning-with-continuous-deployment/
// http://docs.nuget.org/create/nuspec-reference#Replacement_Tokens

[assembly: AssemblyVersion("0.7.3")]
[assembly: AssemblyFileVersion("0.7.3")]
[assembly: AssemblyInformationalVersion("0.7.3")]
[assembly: AssemblyVersion("0.7.4")]
[assembly: AssemblyFileVersion("0.7.4")]
[assembly: AssemblyInformationalVersion("0.7.4")]

0 comments on commit 03bf4b3

Please sign in to comment.