@@ -40,6 +40,7 @@ if ($IsLinux) {
4040 $IsFedora = $LinuxInfo.ID -match ' fedora' -and $LinuxInfo.VERSION_ID -ge 24
4141 $IsOpenSUSE = $LinuxInfo.ID -match ' opensuse'
4242 $IsOpenSUSE13 = $IsOpenSUSE -and $LinuxInfo.VERSION_ID -match ' 13'
43+ ${IsOpenSUSE42.1} = $IsOpenSUSE -and $LinuxInfo.VERSION_ID -match ' 42.1'
4344 $IsRedHatFamily = $IsCentOS -or $IsFedora -or $IsOpenSUSE
4445
4546 # Workaround for temporary LD_LIBRARY_PATH hack for Fedora 24
@@ -99,7 +100,8 @@ function Start-PSBuild {
99100 " win10-x64" ,
100101 " osx.10.11-x64" ,
101102 " osx.10.12-x64" ,
102- " opensuse.13.2-x64" )]
103+ " opensuse.13.2-x64" ,
104+ " opensuse.42.1-x64" )]
103105 [Parameter (ParameterSetName = ' CoreCLR' )]
104106 [string ]$Runtime ,
105107
@@ -473,7 +475,8 @@ function New-PSOptions {
473475 " win10-x64" ,
474476 " osx.10.11-x64" ,
475477 " osx.10.12-x64" ,
476- " opensuse.13.2-x64" )]
478+ " opensuse.13.2-x64" ,
479+ " opensuse.42.1-x64" )]
477480 [string ]$Runtime ,
478481
479482 [switch ]$Publish ,
@@ -1668,14 +1671,14 @@ esac
16681671 # We currently only support:
16691672 # CentOS 7
16701673 # Fedora 24+
1671- # OpenSUSE 13.2
1674+ # OpenSUSE 42.1 ( 13.2 might build but is EOL)
16721675 # Also SEE: https://fedoraproject.org/wiki/Packaging:DistTag
16731676 if ($IsCentOS ) {
16741677 $rpm_dist = " el7.centos"
16751678 } elseif ($IsFedora ) {
16761679 $version_id = $LinuxInfo.VERSION_ID
16771680 $rpm_dist = " fedora.$version_id "
1678- } elseif ($IsOpenSUSE13 ) {
1681+ } elseif ($IsOpenSUSE ) {
16791682 $version_id = $LinuxInfo.VERSION_ID
16801683 $rpm_dist = " suse.$version_id "
16811684 }
@@ -2695,7 +2698,8 @@ function Start-CrossGen {
26952698 " win10-x64" ,
26962699 " osx.10.11-x64" ,
26972700 " osx.10.12-x64" ,
2698- " opensuse.13.2-x64" )]
2701+ " opensuse.13.2-x64" ,
2702+ " opensuse.42.1-x64" )]
26992703 [string ]
27002704 $Runtime
27012705 )
@@ -2761,6 +2765,8 @@ function Start-CrossGen {
27612765 " fedora.24-x64"
27622766 } elseif ($IsOpenSUSE13 ) {
27632767 " opensuse.13.2-x64"
2768+ } elseif (${IsOpenSUSE42.1} ) {
2769+ " opensuse.42.1-x64"
27642770 }
27652771 } elseif ($IsOSX ) {
27662772 " osx.10.10-x64"
0 commit comments