xbps-repo: make show* targets do not follow virtualpkgs from xbps.conf.
The reason for that is that you should be able to show information from any package, and by enabling virtual packages you cannot do that.
This commit is contained in:
parent
164a928e5a
commit
1acf933f5a
@ -48,12 +48,9 @@ show_pkg_info_from_repolist(const char *pkgname, const char *option)
|
||||
{
|
||||
prop_dictionary_t pkgd;
|
||||
|
||||
pkgd = xbps_repository_pool_find_virtualpkg(pkgname, false);
|
||||
if (pkgd == NULL) {
|
||||
pkgd = xbps_repository_pool_find_pkg(pkgname, false, false);
|
||||
if (pkgd == NULL)
|
||||
return errno;
|
||||
}
|
||||
pkgd = xbps_repository_pool_find_pkg(pkgname, false, false);
|
||||
if (pkgd == NULL)
|
||||
return errno;
|
||||
|
||||
if (option)
|
||||
show_pkg_info_one(pkgd, option);
|
||||
@ -71,12 +68,9 @@ show_pkg_deps_from_repolist(const char *pkgname)
|
||||
prop_dictionary_t pkgd;
|
||||
const char *ver, *repoloc;
|
||||
|
||||
pkgd = xbps_repository_pool_find_virtualpkg(pkgname, false);
|
||||
if (pkgd == NULL) {
|
||||
pkgd = xbps_repository_pool_find_pkg(pkgname, false, false);
|
||||
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, "repository", &repoloc);
|
||||
|
Loading…
Reference in New Issue
Block a user