mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2026-06-11 01:40:21 -04:00
Fixes missing architecture check on installation
This commit is contained in:
parent
fd96a00db4
commit
32109f0b2b
1 changed files with 5 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ function Get-IcingaRepositoryPackage()
|
|||
$SourceRepo = $null;
|
||||
$RepoName = $null;
|
||||
[bool]$HasRepo = $FALSE;
|
||||
[bool]$Isx86 = [bool]([IntPtr]::Size -eq 4);
|
||||
|
||||
foreach ($entry in $Repositories) {
|
||||
$RepoContent = Read-IcingaRepositoryFile -Name $entry.Name;
|
||||
|
|
@ -45,6 +46,10 @@ function Get-IcingaRepositoryPackage()
|
|||
continue;
|
||||
}
|
||||
|
||||
if ($package.Architecture -ne 'Multi' -And $package.Architecture -eq 'x86' -And $Isx86 -eq $FALSE) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ([string]::IsNullOrEmpty($Version) -And ($null -eq $LatestVersion -Or $LatestVersion -lt $package.Version)) {
|
||||
[Version]$LatestVersion = [Version]$package.Version;
|
||||
$InstallPackage = $package;
|
||||
|
|
|
|||
Loading…
Reference in a new issue