Display '(pinned)' in the repository field when the given package is pinned.

This is slightly related to #556