Simplify Pkg2.resolve
Merge pull request #3615 from JuliaLang/kf/pkg2

Simplify Pkg2.resolve