Make pkg.latest state respect "fromrepo" argument