|
|
|
@ -34,6 +34,11 @@ namespace NzbDrone.Core.Update
|
|
|
|
|
|
|
|
|
|
public UpdatePackage GetLatestUpdate(string branch, Version currentVersion)
|
|
|
|
|
{
|
|
|
|
|
if (BuildInfo.IsDebug)
|
|
|
|
|
{
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var request = _requestBuilder.Create()
|
|
|
|
|
.Resource("/update/{branch}")
|
|
|
|
|
.AddQueryParam("version", currentVersion)
|
|
|
|
@ -62,6 +67,11 @@ namespace NzbDrone.Core.Update
|
|
|
|
|
|
|
|
|
|
public List<UpdatePackage> GetRecentUpdates(string branch, Version currentVersion, Version previousVersion)
|
|
|
|
|
{
|
|
|
|
|
if (BuildInfo.IsDebug)
|
|
|
|
|
{
|
|
|
|
|
return new List<UpdatePackage>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var request = _requestBuilder.Create()
|
|
|
|
|
.Resource("/update/{branch}/changes")
|
|
|
|
|
.AddQueryParam("version", currentVersion)
|
|
|
|
|