aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Startup.Common/Migrations/UpdateLevelMigration.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-08-26 13:24:04 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-08-26 13:24:04 -0400
commit6377e7365b94be92e38515beda20a0e6dbabe65f (patch)
tree4990f73fa3e79d96da89a92aee2387e3af67e764 /MediaBrowser.Server.Startup.Common/Migrations/UpdateLevelMigration.cs
parent86bc77fd6aa9f366e29cd789de112e4f1f6e7fd9 (diff)
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)
{