packfile: add repository argument to cache_or_unpack_entry