OLD | NEW |
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "update_engine/delta_diff_generator.h" | 5 #include "update_engine/delta_diff_generator.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 #include <fcntl.h> | 8 #include <fcntl.h> |
9 #include <inttypes.h> | 9 #include <inttypes.h> |
10 #include <sys/stat.h> | 10 #include <sys/stat.h> |
(...skipping 1614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1625 } | 1625 } |
1626 | 1626 |
1627 int64_t manifest_metadata_size = | 1627 int64_t manifest_metadata_size = |
1628 strlen(kDeltaMagic) + 2 * sizeof(uint64_t) + serialized_manifest.size(); | 1628 strlen(kDeltaMagic) + 2 * sizeof(uint64_t) + serialized_manifest.size(); |
1629 ReportPayloadUsage(manifest, manifest_metadata_size, op_name_map); | 1629 ReportPayloadUsage(manifest, manifest_metadata_size, op_name_map); |
1630 | 1630 |
1631 LOG(INFO) << "All done. Successfully created delta file."; | 1631 LOG(INFO) << "All done. Successfully created delta file."; |
1632 return true; | 1632 return true; |
1633 } | 1633 } |
1634 | 1634 |
1635 const char* const kBsdiffPath = "/usr/bin/bsdiff"; | 1635 const char* const kBsdiffPath = "bsdiff"; |
1636 const char* const kBspatchPath = "/usr/bin/bspatch"; | 1636 const char* const kBspatchPath = "bspatch"; |
1637 const char* const kDeltaMagic = "CrAU"; | 1637 const char* const kDeltaMagic = "CrAU"; |
1638 | 1638 |
1639 }; // namespace chromeos_update_engine | 1639 }; // namespace chromeos_update_engine |
OLD | NEW |