Introduce xbps_repo_get_pkg_plist() and use it in xbps-query -R.