If a package is listed multiple times, output the last one.

This is the behavior of the original pkgdetails in response to Debian bug 649482