cache: use new pkg_list_t framework