Skip to content

Commit

Permalink
(mariadb) die when an invalid MSI is found
Browse files Browse the repository at this point in the history
  • Loading branch information
mkevenaar committed Nov 19, 2021
1 parent a140118 commit 47613b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions automatic/mariadb.install/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ function global:au_BeforeUpdate {
Write-Host "Downloading to $file_name -" $Latest.Url32
$url32 = $Latest.URL32 + "?mirror=${mirror}"
Invoke-WebRequest -Uri $url32 -OutFile $file_path
(Get-MsiInformation -Path $file_path).ProductVersion
$Latest.FileName32 = $file_name
}

Expand All @@ -42,6 +43,7 @@ function global:au_BeforeUpdate {
Write-Host "Downloading to $file_name -" $Latest.Url64
$url64 = $Latest.URL64 + "?mirror=${mirror}"
Invoke-WebRequest -Uri $url64 -OutFile $file_path
(Get-MsiInformation -Path $file_path).ProductVersion
$Latest.FileName64 = $file_name
}
} catch {
Expand Down
2 changes: 2 additions & 0 deletions automatic/mariadb.portable/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ function global:au_BeforeUpdate {
Write-Host "Downloading to $file_name -" $Latest.Url32
$url32 = $Latest.URL32 + "?mirror=${mirror}"
Invoke-WebRequest -Uri $url32 -OutFile $file_path
(Get-MsiInformation -Path $file_path).ProductVersion
$Latest.FileName32 = $file_name
}

Expand All @@ -42,6 +43,7 @@ function global:au_BeforeUpdate {
Write-Host "Downloading to $file_name -" $Latest.Url64
$url64 = $Latest.URL64 + "?mirror=${mirror}"
Invoke-WebRequest -Uri $url64 -OutFile $file_path
(Get-MsiInformation -Path $file_path).ProductVersion
$Latest.FileName64 = $file_name
}
} catch {
Expand Down

0 comments on commit 47613b7

Please sign in to comment.