PowerShell / PSResourceGet

PSResourceGet is the package manager for PowerShell
https://www.powershellgallery.com/packages/Microsoft.PowerShell.PSResourceGet
MIT License
483 stars 92 forks source link

Bug fix for Update-PSResource not updating from correct repository #1549

Closed alerickson closed 7 months ago

alerickson commented 7 months ago

PR Summary

This PR fixes a bug with Update-PSResource where it was not installing from the repository which the previous installation for the lower version had been installed from. Update now looks at the Repository property after retrieving installed version and installs from that repository. The -Repository parameter still takes precedence, so if a user passes in a value there, that will be the repository update uses.

PR Context

Resolves #1521

PR Checklist