chocolatey-community / Chocolatey

PowerShell Module and DSC Resource for Chocolatey Software
MIT License
43 stars 15 forks source link

!Deploy & release Fix#30 #31

Closed gaelcolas closed 5 years ago

gaelcolas commented 5 years ago

The problem in #30 was when only 1 package was returned (i.e. only Chocolatey is installed on the system). The $UnfilteredResult would be a PSObject, and not a collection. Replacing with | Where-Object did the trick.

Took the opportunity to change the logic of the cache, to something that's a bit more clear and that makes sense now... :)