Skip to content

Commit c63eab5

Browse files
committed
Update script to handle re-ordering of entries
1 parent 3ded07c commit c63eab5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tools/BuildDrop.ps1

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,18 @@ for ($idx = 0; $idx -lt $content.Length; $idx++)
116116

117117
# Change the buffer size to include the three lines just added
118118
$buffer = 3
119+
120+
# Flag that we are no longer in the VSFeed entry
121+
$VSFeedSeen = $False
119122
}
120123

121124
# Check if we are looking at the entry for DH_WindowsAzurePowerShellGet
122125
if ($PSGetSeen -and $content[$idx] -like "*msiProductCode*")
123126
{
124127
$content[$idx] = " <msiProductCode>$ProductCode</msiProductCode>"
128+
129+
# Flag that we are no longer in the PSGet entry
130+
$PSGetSeen = $False
125131
}
126132

127133
$newContent[$idx + $buffer] = $content[$idx]
@@ -172,6 +178,11 @@ for ($idx = 0; $idx -lt $content.Length; $idx++)
172178
{
173179
$content[$idx] = " <trackingURL>http://www.microsoft.com/web/handlers/webpi.ashx?command=incrementproddownloadcount&amp;prodid=WindowsAzurePowershell&amp;version=$PSVersion&amp;prodlang=en</trackingURL>"
174180
}
181+
182+
if ($content[$idx] -like "*</entry>*")
183+
{
184+
$PSGetSeen = $False
185+
}
175186
}
176187

177188
}

0 commit comments

Comments
 (0)