Fixed multiple things in the Update procedure

This commit is contained in:
Leonardo Galli 2017-01-08 20:06:34 +01:00
parent 03cc3a1ad2
commit 906ecfb6a1
4 changed files with 6 additions and 5 deletions

View File

@ -6,6 +6,6 @@ namespace NzbDrone.Core.Update.Commands
{
public override bool SendUpdatesToClient => true;
public override string CompletionMessage => "Restarting Sonarr to apply updates";
public override string CompletionMessage => "Restarting Radarr to apply updates";
}
}

View File

@ -178,8 +178,9 @@ namespace NzbDrone.Core.Update
{
var processId = _processProvider.GetCurrentProcess().Id.ToString();
var executingApplication = _runtimeInfo.ExecutingApplication;
return string.Join(" ", processId, updateSandboxFolder.TrimEnd(Path.DirectorySeparatorChar).WrapInQuotes(), executingApplication.WrapInQuotes(), _startupContext.PreservedArguments);
var args = string.Join(" ", processId, updateSandboxFolder.TrimEnd(Path.DirectorySeparatorChar).WrapInQuotes(), executingApplication.WrapInQuotes(), _startupContext.PreservedArguments);
_logger.Info("Updater Arguments: " + args);
return args;
}
private void EnsureAppDataSafety()

View File

@ -23,7 +23,7 @@ namespace NzbDrone.Core.Update
public List<UpdatePackage> GetRecentUpdatePackages()
{
var branch = _configFileProvider.Branch;
var branch = "develop";//_configFileProvider.Branch;
return _updatePackageProvider.GetRecentUpdates(branch, BuildInfo.Version);
}
}

View File

@ -17,7 +17,7 @@ namespace NzbDrone.Update
{
var assemblies = new List<string>
{
"NzbDrone.Update",
"Radarr.Update",
"NzbDrone.Common"
};