Index: generate_delta_main.cc |
diff --git a/generate_delta_main.cc b/generate_delta_main.cc |
index 0f791e0b509dfb6cbbb16ead976e394df4789fdc..1a7a98ef37d6794af8092bf6a6fbc0afd6942db9 100644 |
--- a/generate_delta_main.cc |
+++ b/generate_delta_main.cc |
@@ -186,16 +186,18 @@ int Main(int argc, char** argv) { |
LOG(FATAL) << "old_dir or new_dir not directory"; |
} |
} |
- DeltaDiffGenerator::GenerateDeltaUpdateFile(FLAGS_old_dir, |
+ if (DeltaDiffGenerator::GenerateDeltaUpdateFile(FLAGS_old_dir, |
FLAGS_old_image, |
FLAGS_new_dir, |
FLAGS_new_image, |
FLAGS_old_kernel, |
FLAGS_new_kernel, |
FLAGS_out_file, |
- FLAGS_private_key); |
- |
- return 0; |
+ FLAGS_private_key)) { |
+ return 0; |
+ } else { |
petkov
2011/02/09 00:38:10
Prefer getting rid of the else...
|
+ return 1; |
+ } |
} |
} // namespace {} |