From a81cda9aa14cfd40cbacf54f400b731e92faafcd Mon Sep 17 00:00:00 2001 From: Virtuworks Date: Sun, 2 Sep 2012 23:34:02 -0400 Subject: [PATCH] Fix Installer to Support CodePlex Downloads --- .../WebsitePanel.Installer.Core/Loader.cs | 10 +++++----- .../WebsitePanel.Installer/Updater.exe | Bin 198144 -> 198144 bytes 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/WebsitePanel.Installer/Sources/WebsitePanel.Installer.Core/Loader.cs b/WebsitePanel.Installer/Sources/WebsitePanel.Installer.Core/Loader.cs index 54ef5d79..116383f0 100644 --- a/WebsitePanel.Installer/Sources/WebsitePanel.Installer.Core/Loader.cs +++ b/WebsitePanel.Installer/Sources/WebsitePanel.Installer.Core/Loader.cs @@ -55,7 +55,7 @@ namespace WebsitePanel.Installer.Core public static class LoaderFactory { /// - /// Instantiates either BitlyLoader or InstallerServiceLoader based on remote file format. + /// Instantiates either CodeplexLoader or InstallerServiceLoader based on remote file format. /// /// /// @@ -63,9 +63,9 @@ namespace WebsitePanel.Installer.Core { Debug.Assert(!String.IsNullOrEmpty(remoteFile), "Remote file is empty"); - if (remoteFile.StartsWith("http://bit.ly/")) + if (remoteFile.StartsWith("http://websitepanel.codeplex.com/")) { - return new BitlyLoader(remoteFile); + return new CodeplexLoader(remoteFile); } else { @@ -74,13 +74,13 @@ namespace WebsitePanel.Installer.Core } } - public class BitlyLoader : Loader + public class CodeplexLoader : Loader { public const string WEB_PI_USER_AGENT_HEADER = "PI-Integrator/3.0.0.0({0})"; private WebClient fileLoader; - internal BitlyLoader(string remoteFile) + internal CodeplexLoader(string remoteFile) : base(remoteFile) { InitFileLoader(); diff --git a/WebsitePanel.Installer/Sources/WebsitePanel.Installer/Updater.exe b/WebsitePanel.Installer/Sources/WebsitePanel.Installer/Updater.exe index 5027b10e550e162c5ffadf689281e343d5fb8485..9c7182383cbea7addf9b5341ce34dc79ed1b2e97 100644 GIT binary patch delta 44 zcmZqZ;c4jMnb5%$G_|p-wTp3U7t^5v0gIHRCoiKaoL7dX8+hmb)z}_W$h2e%0G&e; A-~a#s delta 44 zcmZqZ;c4jMnb5)1F{!buwTp3U7t^5v0VC_rT2lGU-jgzdWoAab4A>r1$h2e%0E(p% Aw*UYD