diff options
Diffstat (limited to 'src/TestBA/TestBA.cs')
-rw-r--r-- | src/TestBA/TestBA.cs | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/TestBA/TestBA.cs b/src/TestBA/TestBA.cs index f86a5807..18b1fd0c 100644 --- a/src/TestBA/TestBA.cs +++ b/src/TestBA/TestBA.cs | |||
@@ -178,20 +178,15 @@ namespace WixToolset.Test.BA | |||
178 | { | 178 | { |
179 | // The list of updates is sorted in descending version, so the first callback should be the largest update available. | 179 | // The list of updates is sorted in descending version, so the first callback should be the largest update available. |
180 | // This update should be either larger than ours (so we are out of date), the same as ours (so we are current) | 180 | // This update should be either larger than ours (so we are out of date), the same as ours (so we are current) |
181 | // or smaller than ours (we have a private build). If we really wanted to, we could leave the e.StopProcessingUpdates alone and | 181 | // or smaller than ours (we have a private build). |
182 | // enumerate all of the updates. | 182 | // Enumerate all of the updates anyway in case something's broken. |
183 | this.Log(String.Format("Potential update v{0} from '{1}'; current version: v{2}", e.Version, e.UpdateLocation, this.Version)); | 183 | this.Log(String.Format("Potential update v{0} from '{1}'; current version: v{2}", e.Version, e.UpdateLocation, this.Version)); |
184 | if (this.Engine.CompareVersions(e.Version, this.Version) > 0) | 184 | if (!this.UpdateAvailable && this.Engine.CompareVersions(e.Version, this.Version) > 0) |
185 | { | 185 | { |
186 | this.Log(String.Format("Selected update v{0}", e.Version)); | 186 | this.Log(String.Format("Selected update v{0}", e.Version)); |
187 | this.Engine.SetUpdate(null, e.UpdateLocation, e.Size, UpdateHashType.None, null); | 187 | this.Engine.SetUpdate(null, e.UpdateLocation, e.Size, UpdateHashType.None, null); |
188 | this.UpdateAvailable = true; | 188 | this.UpdateAvailable = true; |
189 | } | 189 | } |
190 | else | ||
191 | { | ||
192 | this.UpdateAvailable = false; | ||
193 | } | ||
194 | e.StopProcessingUpdates = true; | ||
195 | } | 190 | } |
196 | 191 | ||
197 | protected override void OnDetectUpdateComplete(DetectUpdateCompleteEventArgs e) | 192 | protected override void OnDetectUpdateComplete(DetectUpdateCompleteEventArgs e) |