Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(335)

Side by Side Diff: delta_diff_generator.cc

Issue 4114006: AU: locate bsdiff/bspatch in $PATH, rather than hard coding their location. (Closed) Base URL: http://git.chromium.org/git/update_engine.git@master
Patch Set: fix for review Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | subprocess.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | subprocess.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698