First step of actual update

We will now need a bootstrapper to complete the update on startup
This commit is contained in:
Eric Reed
2013-02-28 16:03:59 -05:00
parent 4947db0e2a
commit 3657ef952d
4 changed files with 16 additions and 12 deletions

View File

@@ -80,11 +80,12 @@ namespace MediaBrowser.Common.Implementations.ScheduledTasks.Tasks
progress.Report(10);
if (!updateInfo.IsUpdateAvailable)
{
progress.Report(100);
return;
}
//>>> FOR TESTING
//if (!updateInfo.IsUpdateAvailable)
//{
// progress.Report(100);
// return;
//}
cancellationToken.ThrowIfCancellationRequested();
@@ -97,7 +98,7 @@ namespace MediaBrowser.Common.Implementations.ScheduledTasks.Tasks
innerProgress = new Progress<double>();
innerProgress.ProgressChanged += innerProgressHandler;
await _appHost.UpdateApplication(cancellationToken, innerProgress).ConfigureAwait(false);
await _appHost.UpdateApplication(updateInfo.Package, cancellationToken, innerProgress).ConfigureAwait(false);
// Release the event handler
innerProgress.ProgressChanged -= innerProgressHandler;