summaryrefslogtreecommitdiff
path: root/payload_generator/graph_utils.cc
diff options
context:
space:
mode:
authorAlex Deymo <deymo@chromium.org>2015-07-16 16:08:16 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-07-17 10:57:30 +0000
commit3b2c7d0e6d859e6fc75c82b3417f87cf5968a49d (patch)
tree66f1290ffef4c222be3879d1466a917be244400b /payload_generator/graph_utils.cc
parentf6165357bfbb74b22a4da5780a474f439611e167 (diff)
update_engine: Sort full operations by destination.
The inplace generator moves all the full operations to the end of the list. This patch sorts those operations by the destination. This patch also cleans up the Vertex class by using the new AnnotatedOperation class instead of the operation and file_name separated. BUG=None TEST=Unittest still pass. minor_version=1 full operations appear in order according to "cros payload". Change-Id: Ia0c15939086cec52dc855cbc3afa913f8cbebf6b Reviewed-on: https://chromium-review.googlesource.com/286213 Tested-by: Alex Deymo <deymo@chromium.org> Reviewed-by: Gilad Arnold <garnold@chromium.org> Commit-Queue: Alex Deymo <deymo@chromium.org>
Diffstat (limited to 'payload_generator/graph_utils.cc')
-rw-r--r--payload_generator/graph_utils.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/payload_generator/graph_utils.cc b/payload_generator/graph_utils.cc
index 91665606..265177fc 100644
--- a/payload_generator/graph_utils.cc
+++ b/payload_generator/graph_utils.cc
@@ -114,12 +114,12 @@ void DumpGraph(const Graph& graph) {
for (Graph::size_type i = 0, e = graph.size(); i != e; ++i) {
LOG(INFO) << i
<< (graph[i].valid ? "" : "-INV")
- << ": " << graph[i].file_name
- << ": " << InstallOperationTypeName(graph[i].op.type());
+ << ": " << graph[i].aop.name
+ << ": " << InstallOperationTypeName(graph[i].aop.op.type());
LOG(INFO) << " src_extents:";
- DumpExtents(graph[i].op.src_extents(), 4);
+ DumpExtents(graph[i].aop.op.src_extents(), 4);
LOG(INFO) << " dst_extents:";
- DumpExtents(graph[i].op.dst_extents(), 4);
+ DumpExtents(graph[i].aop.op.dst_extents(), 4);
LOG(INFO) << " out edges:";
DumpOutEdges(graph[i].out_edges);
}