diff options
author | 2010-09-06 14:27:53 +0100 | |
---|---|---|
committer | 2010-09-06 14:27:53 +0100 | |
commit | 70e248d7851c604927bfeedd5e818c61df85c6b2 (patch) | |
tree | c117001f21772898c72f8665776707db71940eff | |
parent | 1bbfb70cfe8309c4d439f5632d3de3785d4b62fa (diff) | |
download | paludis-70e248d7851c604927bfeedd5e818c61df85c6b2.tar.gz paludis-70e248d7851c604927bfeedd5e818c61df85c6b2.tar.xz |
Different boxes and colours for different dts
-rw-r--r-- | src/clients/cave/cmd_graph_jobs.cc | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/src/clients/cave/cmd_graph_jobs.cc b/src/clients/cave/cmd_graph_jobs.cc index ea0e43dd8..ef74ba452 100644 --- a/src/clients/cave/cmd_graph_jobs.cc +++ b/src/clients/cave/cmd_graph_jobs.cc @@ -115,8 +115,27 @@ namespace void visit(const InstallJob & job) const { output_stream << "label=\"" << short_spec(job.origin_id_spec(), full) << " -> " << job.destination_repository_name() << "\""; - output_stream << "shape=box, "; - output_stream << "fillcolor=royalblue, "; + switch (job.destination_type()) + { + case dt_install_to_slash: + output_stream << "shape=box, "; + output_stream << "fillcolor=royalblue, "; + break; + + case dt_create_binary: + output_stream << "shape=octagon, "; + output_stream << "fillcolor=aquamarine3, "; + break; + + case dt_install_to_chroot: + output_stream << "shape=septagon, "; + output_stream << "fillcolor=steelblue, "; + break; + + case last_dt: + break; + } + output_stream << "style=filled"; } |