xbps-repo8(8): make the show targets be aware of vpkg settings in conf.

This commit is contained in:
Juan RP 2011-10-16 16:54:08 +02:00
parent dfa8b8e8ba
commit d70036dd81

View File

@ -104,9 +104,12 @@ show_pkg_info_from_repolist(const char *pkgname)
{ {
prop_dictionary_t pkgd; prop_dictionary_t pkgd;
pkgd = xbps_repository_pool_find_pkg(pkgname, false, false); pkgd = xbps_repository_pool_find_virtualpkg(pkgname, false, false);
if (pkgd == NULL) if (pkgd == NULL) {
return errno; pkgd = xbps_repository_pool_find_pkg(pkgname, false, false);
if (pkgd == NULL)
return errno;
}
show_pkg_info(pkgd); show_pkg_info(pkgd);
prop_object_release(pkgd); prop_object_release(pkgd);
@ -120,9 +123,12 @@ show_pkg_deps_from_repolist(const char *pkgname)
prop_dictionary_t pkgd; prop_dictionary_t pkgd;
const char *ver, *repoloc; const char *ver, *repoloc;
pkgd = xbps_repository_pool_find_pkg(pkgname, false, false); pkgd = xbps_repository_pool_find_virtualpkg(pkgname, false, false);
if (pkgd == NULL) if (pkgd == NULL) {
return errno; pkgd = xbps_repository_pool_find_pkg(pkgname, false, false);
if (pkgd == NULL)
return errno;
}
prop_dictionary_get_cstring_nocopy(pkgd, "version", &ver); prop_dictionary_get_cstring_nocopy(pkgd, "version", &ver);
prop_dictionary_get_cstring_nocopy(pkgd, "repository", &repoloc); prop_dictionary_get_cstring_nocopy(pkgd, "repository", &repoloc);