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.
If the PR is work in progress, please add the prefix WIP: or [ WIP ] to the beginning of the title (the WIP bot will keep its status check at Pending while the prefix is present) and remove the prefix when the PR is ready.
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 theRepository
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 repositoryupdate
uses.PR Context
Resolves #1521
PR Checklist
.h
,.cpp
,.cs
,.ps1
and.psm1
files have the correct copyright headerWIP:
or[ WIP ]
to the beginning of the title (theWIP
bot will keep its status check atPending
while the prefix is present) and remove the prefix when the PR is ready.