Skip to content

Commit d96a321

Browse files
rjmholtTravisEz13
authored andcommitted
Change packaging to support Ubuntu 17.10 and 18.04 (#6769)
Ubuntu 17.04 is EOL, so we need to update our packaging for Ubuntu 17.10. This updates the package script and build.psm1 to use 17.10 rather than 17.04.
1 parent 0b414f6 commit d96a321

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

build.psm1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ function Get-EnvironmentInformation
134134
$environment += @{'IsUbuntu' = $LinuxInfo.ID -match 'ubuntu'}
135135
$environment += @{'IsUbuntu14' = $Environment.IsUbuntu -and $LinuxInfo.VERSION_ID -match '14.04'}
136136
$environment += @{'IsUbuntu16' = $Environment.IsUbuntu -and $LinuxInfo.VERSION_ID -match '16.04'}
137-
$environment += @{'IsUbuntu17' = $Environment.IsUbuntu -and $LinuxInfo.VERSION_ID -match '17.04'}
137+
$environment += @{'IsUbuntu17' = $Environment.IsUbuntu -and $LinuxInfo.VERSION_ID -match '17.10'}
138+
$environment += @{'IsUbuntu18' = $Environment.IsUbuntu -and $LinuxInfo.VERSION_ID -match '18.04'}
138139
$environment += @{'IsCentOS' = $LinuxInfo.ID -match 'centos' -and $LinuxInfo.VERSION_ID -match '7'}
139140
$environment += @{'IsFedora' = $LinuxInfo.ID -match 'fedora' -and $LinuxInfo.VERSION_ID -ge 24}
140141
$environment += @{'IsOpenSUSE' = $LinuxInfo.ID -match 'opensuse'}

tools/packaging/packaging.psm1

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
$Environment = Get-EnvironmentInformation
44

55
$packagingStrings = Import-PowerShellDataFile "$PSScriptRoot\packaging.strings.psd1"
6-
$DebianDistributions = @("ubuntu.14.04", "ubuntu.16.04", "ubuntu.17.04", "debian.8", "debian.9")
6+
$DebianDistributions = @("ubuntu.14.04", "ubuntu.16.04", "ubuntu.17.10", "ubuntu.18.04", "debian.8", "debian.9")
77

88
function Start-PSPackage {
99
[CmdletBinding(DefaultParameterSetName='Version',SupportsShouldProcess=$true)]
@@ -573,7 +573,9 @@ function New-UnixPackage {
573573
} elseif ($Environment.IsUbuntu16) {
574574
$DebDistro = "ubuntu.16.04"
575575
} elseif ($Environment.IsUbuntu17) {
576-
$DebDistro = "ubuntu.17.04"
576+
$DebDistro = "ubuntu.17.10"
577+
} elseif ($Environment.IsUbuntu18) {
578+
$DebDistro = "ubuntu.18.04"
577579
} elseif ($Environment.IsDebian8) {
578580
$DebDistro = "debian.8"
579581
} elseif ($Environment.IsDebian9) {
@@ -992,7 +994,8 @@ function Get-PackageDependencies
992994
switch ($Distribution) {
993995
"ubuntu.14.04" { $Dependencies += @("libssl1.0.0", "libicu52") }
994996
"ubuntu.16.04" { $Dependencies += @("libssl1.0.0", "libicu55") }
995-
"ubuntu.17.04" { $Dependencies += @("libssl1.0.0", "libicu57") }
997+
"ubuntu.17.10" { $Dependencies += @("libssl1.0.0", "libicu57") }
998+
"ubuntu.18.04" { $Dependencies += @("libssl1.0.0", "libicu60") }
996999
"debian.8" { $Dependencies += @("libssl1.0.0", "libicu52") }
9971000
"debian.9" { $Dependencies += @("libssl1.0.2", "libicu57") }
9981001
default { throw "Debian distro '$Distribution' is not supported." }

0 commit comments

Comments
 (0)