AU: Resume interrupted update attempts.
BUG=7390,7520
TEST=unit tests
Change-Id: I9baf72aa444dd855409f865f03fb665e91f8d03d
Review URL: http://codereview.chromium.org/3620013
diff --git a/filesystem_copier_action.cc b/filesystem_copier_action.cc
index 388e0e7..5628ec3 100755
--- a/filesystem_copier_action.cc
+++ b/filesystem_copier_action.cc
@@ -1,21 +1,25 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "update_engine/filesystem_copier_action.h"
+
#include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
#include <fcntl.h>
-#include <stdlib.h>
+
#include <algorithm>
+#include <cstdlib>
#include <map>
#include <string>
#include <vector>
+
#include <gio/gio.h>
#include <gio/gunixinputstream.h>
#include <gio/gunixoutputstream.h>
#include <glib.h>
+
#include "update_engine/filesystem_iterator.h"
#include "update_engine/subprocess.h"
#include "update_engine/utils.h"
@@ -41,7 +45,7 @@
}
install_plan_ = GetInputObject();
- if (install_plan_.is_full_update) {
+ if (install_plan_.is_full_update || install_plan_.is_resume) {
// No copy needed. Done!
if (HasOutputPipe())
SetOutputObject(install_plan_);