packfile: add repository argument to find_pack_entry