Fixes repo hash generator to only include zip/msi

This commit is contained in:
Lord Hepipud 2021-11-11 09:47:01 +01:00
parent 6a51086f6c
commit 83d1bbae8a
2 changed files with 2 additions and 1 deletions

View file

@ -18,6 +18,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
### Bugfixes ### Bugfixes
* [#398](https://github.com/Icinga/icinga-powershell-framework/pull/398) Fixes String.Builder object output, while creating new components by using `New-IcingaForWindowsComponent` * [#398](https://github.com/Icinga/icinga-powershell-framework/pull/398) Fixes String.Builder object output, while creating new components by using `New-IcingaForWindowsComponent`
* [#399](https://github.com/Icinga/icinga-powershell-framework/issues/399) Fixes repository file hash generator, which now only includes .zip and .msi files, which otherwise turned into invalid hashes because of the repository index file always changing based on the assigned hash
* [#401](https://github.com/Icinga/icinga-powershell-framework/pull/401) Fixes the repository manager by now using Icinga WebRequests instead of Windows WebRequests, allowing the usage of the internal proxy feature * [#401](https://github.com/Icinga/icinga-powershell-framework/pull/401) Fixes the repository manager by now using Icinga WebRequests instead of Windows WebRequests, allowing the usage of the internal proxy feature
## 1.7.0 (2021-11-09) ## 1.7.0 (2021-11-09)

View file

@ -9,7 +9,7 @@ function Get-IcingaRepositoryHash()
return; return;
} }
$RepositoryFolder = Get-ChildItem -Path $Path -Recurse; $RepositoryFolder = Get-ChildItem -Path $Path -Recurse -Include '*.zip', '*.msi';
$FileHashes = New-Object -TypeName 'System.Text.StringBuilder'; $FileHashes = New-Object -TypeName 'System.Text.StringBuilder';
foreach ($entry in $RepositoryFolder) { foreach ($entry in $RepositoryFolder) {