Are you intentionally trying to pin all packages?
Shouldn't you be pinning only application packages by filtering by the owner?