Merge pull request #400 from Icinga:fix/repo_hash_generator

Fix: Repo hash generator causes file hashes to never compare

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, resulting in a different repository hash
This commit is contained in:
Lord Hepipud 2021-11-11 15:56:49 +01:00 committed by GitHub
commit 513b7db1c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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
* [#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
## 1.7.0 (2021-11-09)

View file

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