Add repo-related arguments to pkg.upgrade
Merge pull request #12681 from tedski/12632

Add repo-related arguments to pkg.upgrade