xbps-dgraph: update graph label for -f mode

This commit is contained in:
Juan RP 2014-11-20 16:28:47 +01:00
parent 8c4d41ccfd
commit 4b3a4159a0

View File

@ -434,6 +434,10 @@ create_dot_graph(struct xbps_handle *xhp,
*/ */
fprintf(f, " graph ["); fprintf(f, " graph [");
write_conf_property_on_stream(f, "graph"); write_conf_property_on_stream(f, "graph");
if (fulldepgraph)
fprintf(f, ",label=\"[XBPS] %s full dependency graph "
"[%s]\"];\n", pkgver, repomode ? "repo" : "pkgdb");
else
fprintf(f, ",label=\"[XBPS] %s metadata properties\"];\n", pkgver); fprintf(f, ",label=\"[XBPS] %s metadata properties\"];\n", pkgver);
/* /*