use pkg.name instead of pkg.repo