Skip to content

Commit

Permalink
add support for defining the ring/channel
Browse files Browse the repository at this point in the history
  • Loading branch information
rgl committed Apr 13, 2024
1 parent be10d04 commit b115578
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions uup-dump-get-windows-iso.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,20 @@ function Get-UupDumpIso($name, $target) {
} `
| Where-Object {
# only return builds that:
# 1. are from the retail channel
# 1. are from the expected ring/channel (default retail)
# 2. have the english language
# 3. match the requested edition
$ring = $_.Value.info.ring
$langs = $_.Value.langs.PSObject.Properties.Name
$editions = $_.Value.editions.PSObject.Properties.Name
$result = $true
if ($ring -ne 'RETAIL') {
Write-Host "Skipping. Expected ring=RETAIL. Got ring=$ring."
$expectedRing = if ($target.ring) {
$target.ring
} else {
'RETAIL'
}
if ($ring -ne $expectedRing) {
Write-Host "Skipping. Expected ring=$expectedRing. Got ring=$ring."
$result = $false
}
if ($langs -notcontains 'en-us') {
Expand Down

0 comments on commit b115578

Please sign in to comment.