diff options
author | Alex Deymo <deymo@chromium.org> | 2015-09-11 17:16:44 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-09-14 18:53:36 -0700 |
commit | 2846677f9ec7725d9cf9513768477c873c19ba78 (patch) | |
tree | 61e9a4c2a66d499c0151a4f2b3bdd359b5c04305 /scripts/update_payload/common.py | |
parent | 53b62278d049a50c20e6693aeaefe9675ccb8407 (diff) |
paycheck: Update generated protobuf code.
This patch updates the generated update_metadata_pb2.py file with the
latest changes in the udpate_metadata.proto file. Some other changes in
the update_payload library were required to match the changes in the
.proto file.
BUG=b:23179128
TEST=paycheck unittests
Change-Id: I482d67d4a35f69438a26395eea77286994108b7a
Reviewed-on: https://chromium-review.googlesource.com/299498
Commit-Ready: Alex Deymo <deymo@chromium.org>
Tested-by: Alex Deymo <deymo@chromium.org>
Reviewed-by: Gilad Arnold <garnold@chromium.org>
Diffstat (limited to 'scripts/update_payload/common.py')
-rw-r--r-- | scripts/update_payload/common.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/scripts/update_payload/common.py b/scripts/update_payload/common.py index 1a9b010d..9d008a95 100644 --- a/scripts/update_payload/common.py +++ b/scripts/update_payload/common.py @@ -29,7 +29,7 @@ SOURCE_MINOR_PAYLOAD_VERSION = 2 # class OpType(object): """Container for operation type constants.""" - _CLASS = update_metadata_pb2.DeltaArchiveManifest.InstallOperation + _CLASS = update_metadata_pb2.InstallOperation # pylint: disable=E1101 REPLACE = _CLASS.REPLACE REPLACE_BZ = _CLASS.REPLACE_BZ @@ -37,14 +37,21 @@ class OpType(object): BSDIFF = _CLASS.BSDIFF SOURCE_COPY = _CLASS.SOURCE_COPY SOURCE_BSDIFF = _CLASS.SOURCE_BSDIFF - ALL = (REPLACE, REPLACE_BZ, MOVE, BSDIFF, SOURCE_COPY, SOURCE_BSDIFF) + ZERO = _CLASS.ZERO + DISCARD = _CLASS.DISCARD + REPLACE_XZ = _CLASS.REPLACE_XZ + ALL = (REPLACE, REPLACE_BZ, MOVE, BSDIFF, SOURCE_COPY, SOURCE_BSDIFF, ZERO, + DISCARD, REPLACE_XZ) NAMES = { REPLACE: 'REPLACE', REPLACE_BZ: 'REPLACE_BZ', MOVE: 'MOVE', BSDIFF: 'BSDIFF', SOURCE_COPY: 'SOURCE_COPY', - SOURCE_BSDIFF: 'SOURCE_BSDIFF' + SOURCE_BSDIFF: 'SOURCE_BSDIFF', + ZERO: 'ZERO', + DISCARD: 'DISCARD', + REPLACE_XZ: 'REPLACE_XZ' } def __init__(self): |