From 3e55dbd8a5e171c088f5f66439b86c9da0139b99 Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Thu, 11 Nov 2021 09:47:01 +0100 Subject: [PATCH] Fixes repo hash generator to only include zip/msi --- doc/100-General/10-Changelog.md | 1 + lib/core/repository/Get-IcingaRepositoryHash.psm1 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/100-General/10-Changelog.md b/doc/100-General/10-Changelog.md index cdb80d1..7f62349 100644 --- a/doc/100-General/10-Changelog.md +++ b/doc/100-General/10-Changelog.md @@ -14,6 +14,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) diff --git a/lib/core/repository/Get-IcingaRepositoryHash.psm1 b/lib/core/repository/Get-IcingaRepositoryHash.psm1 index dd5dc11..eecb15b 100644 --- a/lib/core/repository/Get-IcingaRepositoryHash.psm1 +++ b/lib/core/repository/Get-IcingaRepositoryHash.psm1 @@ -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) {