xbps-dgraph: only add revdeps when it's necessary.
This commit is contained in:
@ -422,7 +422,8 @@ create_dot_graph(struct xbps_handle *xhp,
|
|||||||
*/
|
*/
|
||||||
if (revdeps) {
|
if (revdeps) {
|
||||||
rdeps = xbps_pkgdb_get_pkg_revdeps(xhp, pkgver);
|
rdeps = xbps_pkgdb_get_pkg_revdeps(xhp, pkgver);
|
||||||
prop_dictionary_set(plistd, "requiredby", rdeps);
|
if (prop_array_count(rdeps))
|
||||||
|
prop_dictionary_set(plistd, "requiredby", rdeps);
|
||||||
}
|
}
|
||||||
allkeys = prop_dictionary_all_keys(plistd);
|
allkeys = prop_dictionary_all_keys(plistd);
|
||||||
parse_array_in_pkg_dictionary(f, plistd, sub_confd, allkeys);
|
parse_array_in_pkg_dictionary(f, plistd, sub_confd, allkeys);
|
||||||
|
Reference in New Issue
Block a user