xbps-dgraph: only add revdeps when it's necessary.

This commit is contained in:
Juan RP 2013-06-13 17:44:44 +02:00
parent 6b397198bf
commit 7b2942e789

View File

@ -422,6 +422,7 @@ 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);
if (prop_array_count(rdeps))
prop_dictionary_set(plistd, "requiredby", rdeps); prop_dictionary_set(plistd, "requiredby", rdeps);
} }
allkeys = prop_dictionary_all_keys(plistd); allkeys = prop_dictionary_all_keys(plistd);