Skip to content
Permalink
Browse files

[Launcher] Ignore server-side dev packages

  • Loading branch information
xen2 committed Dec 5, 2018
1 parent d386ff3 commit df6aae5a00f602febbfb1e64fe4a5bbd22112836
@@ -616,6 +616,11 @@ public bool IsDevRedirectPackage(NugetLocalPackage package)
return File.Exists(GetRedirectFile(package));
}

public bool IsDevRedirectPackage(NugetServerPackage package)
{
return package.Version.SpecialVersion?.StartsWith("dev") ?? false;
}

private void OnPackageInstalled(object sender, PackageOperationEventArgs args)
{
var packageInstallPath = Path.Combine(args.InstallPath, "tools\\packageinstall.exe");
@@ -291,7 +291,7 @@ private async Task RetrieveServerXenkoVersions()
#if SIMULATE_OFFLINE
var serverPackages = new List<IPackage>();
#else
var serverPackages = await RunLockTask(() => store.FindSourcePackages(store.MainPackageIds, CancellationToken.None).Result.FilterXenkoMainPackages().OrderByDescending(p => p.Version).ToList());
var serverPackages = await RunLockTask(() => store.FindSourcePackages(store.MainPackageIds, CancellationToken.None).Result.FilterXenkoMainPackages().Where(p => !store.IsDevRedirectPackage(p)).OrderByDescending(p => p.Version).ToList());
#endif
// Check if we could connect to the server
var wasOffline = IsOffline;

0 comments on commit df6aae5

Please sign in to comment.
You can’t perform that action at this time.