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

Unified Diff: src/platform/update_engine/generate_delta_main.cc

Issue 545072: AU: Gut code for old updater. New protobuf for v2 updater. (Closed)
Patch Set: better comments Created 10 years, 11 months 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 side-by-side diff with in-line comments
Download patch
Index: src/platform/update_engine/generate_delta_main.cc
diff --git a/src/platform/update_engine/generate_delta_main.cc b/src/platform/update_engine/generate_delta_main.cc
index b64533b72afe4b448dedbd71e0f3ecf3d4da6404..551c6ef07b644ba9f77c415ec1a2f071ffabbb1a 100644
--- a/src/platform/update_engine/generate_delta_main.cc
+++ b/src/platform/update_engine/generate_delta_main.cc
@@ -25,11 +25,6 @@ using std::string;
namespace chromeos_update_engine {
namespace {
-// These paths should never be delta diffed. They should always be transmitted
-// in full in the update.
-const char* kNonDiffPaths[] = {
- "/boot/extlinux.conf"
-};
void usage(const char* argv0) {
printf("usage: %s old_dir new_dir out_file\n", argv0);
@@ -58,19 +53,8 @@ int Main(int argc, char** argv) {
usage(argv[0]);
}
- set<string> non_diff_paths;
- for (size_t i = 0; i < arraysize(kNonDiffPaths); i++)
- non_diff_paths.insert(kNonDiffPaths[i]);
-
- DeltaArchiveManifest* manifest =
- DeltaDiffGenerator::EncodeMetadataToProtoBuffer(new_dir);
- CHECK(manifest);
- CHECK(DeltaDiffGenerator::EncodeDataToDeltaFile(manifest,
- old_dir,
- new_dir,
- argv[3],
- non_diff_paths,
- ""));
+ // TODO(adlr): generate delta file
+
return 0;
}

Powered by Google App Engine
This is Rietveld 408576698