packfile: add repository argument to unpack_entry