From cdb595a3cddcdf9e0a1b4e7a3f83fceae48cf87b Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Thu, 5 Jun 2014 15:40:19 -0700 Subject: [PATCH] Only accept the PID for now in the updater, ignore everything else --- src/NzbDrone.Update/UpdateApp.cs | 48 ++++++++++++++++---------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/src/NzbDrone.Update/UpdateApp.cs b/src/NzbDrone.Update/UpdateApp.cs index 1cc323e67..9d994233f 100644 --- a/src/NzbDrone.Update/UpdateApp.cs +++ b/src/NzbDrone.Update/UpdateApp.cs @@ -71,30 +71,30 @@ namespace NzbDrone.Update ProcessId = ParseProcessId(args[0]) }; - if (args.Count() == 1) - { - return startupContext; - } - - else if (args.Count() == 3) - { - startupContext.UpdateLocation = args[1]; - startupContext.ExecutingApplication = args[2]; - } - - else - { - logger.Debug("Arguments:"); - - foreach (var arg in args) - { - logger.Debug(" {0}", arg); - } - - var message = String.Format("Number of arguments are unexpected, expected: 3, found: {0}", args.Count()); - - throw new ArgumentOutOfRangeException("args", message); - } +// if (args.Count() == 1) +// { +// return startupContext; +// } +// +// else if (args.Count() == 3) +// { +// startupContext.UpdateLocation = args[1]; +// startupContext.ExecutingApplication = args[2]; +// } +// +// else +// { +// logger.Debug("Arguments:"); +// +// foreach (var arg in args) +// { +// logger.Debug(" {0}", arg); +// } +// +// var message = String.Format("Number of arguments are unexpected, expected: 3, found: {0}", args.Count()); +// +// throw new ArgumentOutOfRangeException("args", message); +// } return startupContext; }