Create a list from get_package_ids generator function