xbps-bin: fixed regression in 'show-deps' target.
This commit is contained in:
parent
934bc4869e
commit
53c7f9effe
@ -67,8 +67,11 @@ show_pkg_reverse_deps(const char *pkgname)
|
|||||||
|
|
||||||
pkgd = xbps_find_virtualpkg_dict_installed(pkgname, false);
|
pkgd = xbps_find_virtualpkg_dict_installed(pkgname, false);
|
||||||
if (pkgd == NULL) {
|
if (pkgd == NULL) {
|
||||||
printf("Package %s is not installed.\n", pkgname);
|
pkgd = xbps_find_pkg_dict_installed(pkgname, false);
|
||||||
return 0;
|
if (pkgd == NULL) {
|
||||||
|
printf("Package %s is not installed.\n", pkgname);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
rv = xbps_callback_array_iter_in_dict(pkgd, "requiredby",
|
rv = xbps_callback_array_iter_in_dict(pkgd, "requiredby",
|
||||||
list_strings_sep_in_array, NULL);
|
list_strings_sep_in_array, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user