aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Startup.Common/Migrations/UpdateLevelMigration.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-08-26 13:26:41 -0400
committerGitHub <noreply@github.com>2016-08-26 13:26:41 -0400
commit07bdea0322dee072036e9ea632d57b8b2ae00afb (patch)
tree09af950d0a6cdcba9d758c8bcb25449b46777acf /MediaBrowser.Server.Startup.Common/Migrations/UpdateLevelMigration.cs
parent79c2ddb3ca56854b9c3f6644da4d21d162024832 (diff)
parent6377e7365b94be92e38515beda20a0e6dbabe65f (diff)
Merge pull request #2103 from MediaBrowser/dev
fix sync container statuses
Diffstat (limited to 'MediaBrowser.Server.Startup.Common/Migrations/UpdateLevelMigration.cs')
-rw-r--r--MediaBrowser.Server.Startup.Common/Migrations/UpdateLevelMigration.cs14
1 files changed, 8 insertions, 6 deletions
diff --git a/MediaBrowser.Server.Startup.Common/Migrations/UpdateLevelMigration.cs b/MediaBrowser.Server.Startup.Common/Migrations/UpdateLevelMigration.cs
index 948fe114a..6d22aaed0 100644
--- a/MediaBrowser.Server.Startup.Common/Migrations/UpdateLevelMigration.cs
+++ b/MediaBrowser.Server.Startup.Common/Migrations/UpdateLevelMigration.cs
@@ -62,11 +62,12 @@ namespace MediaBrowser.Server.Startup.Common.Migrations
var newUpdateLevel = updateLevel;
- if (releases.Count >= 2)
+ // If the current version is later than current stable, set the update level to beta
+ if (releases.Count >= 1)
{
- var beta = releases[1];
+ var release = releases[0];
Version version;
- if (Version.TryParse(beta.tag_name, out version))
+ if (Version.TryParse(release.tag_name, out version))
{
if (currentVersion >= version)
{
@@ -75,11 +76,12 @@ namespace MediaBrowser.Server.Startup.Common.Migrations
}
}
- if (releases.Count >= 3)
+ // If the current version is later than current beta, set the update level to dev
+ if (releases.Count >= 2)
{
- var dev = releases[2];
+ var release = releases[1];
Version version;
- if (Version.TryParse(dev.tag_name, out version))
+ if (Version.TryParse(release.tag_name, out version))
{
if (currentVersion >= version)
{