Pass the correct major_version when generating updates.

All Chrome OS updaters support major payload version 1 (or newer) and
all Brillo updaters support major payload version 2, so this patch
passes those version numbers to the delta_generator.

When generating delta payloads, we use the major_version specified by
the old updater.

BUG=b:22024447
TEST=`brillo_generate_update_payload` generate, hash and sign for a recent build.

Change-Id: Ib7509296a3bab79868e4fd718a0aaac163b29f69
Reviewed-on: https://chromium-review.googlesource.com/306101
Commit-Ready: Alex Deymo <deymo@chromium.org>
Tested-by: Alex Deymo <deymo@chromium.org>
Reviewed-by: Jason Kusuma <jkusuma@chromium.org>
Reviewed-by: Gilad Arnold <garnold@chromium.org>
1 file changed
tree: 90fcc977399f89bf9150ef443add7a4a8eb946ac
  1. scripts/