Fix fetching for reinstalled packages.

Reported by:	az