diff options
author | Vyshu <vyshu@google.com> | 2020-09-17 21:37:21 +0000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-24 20:37:32 +0000 |
commit | a81598b5c2d7b74ba46c2daac1558cdcb959cc1b (patch) | |
tree | ca3c1f3af73001e7d217541eded575db1ea32c14 /scripts/update_payload/payload.py | |
parent | fbc57355f863b5476ae1739375bb8ce026c8a629 (diff) |
payload_generator: Remove unused attributes
Some attributes are not used by the client. Removed all instances of
of "ignored" and option ttributes from delta generation. Removed
all instances of ImageInfo and moved target and source version
to paygen_payload.
BUG=b:163048638
TEST=FEATURES=test emerge-hatch update_engine
TEST=FEATURES=test emerge update_payload
TEST=./run_pytest lib/paygen/paygen_payload_lib_unittest.py
Change-Id: I9102d37fcf054f2cbeb79e54113925a684de1cfb
Reviewed-on: https://chromium-review.googlesource.com/c/aosp/platform/system/update_engine/+/2388163
Reviewed-by: Amin Hassani <ahassani@chromium.org>
Tested-by: Vyshu Khota <vyshu@google.com>
Commit-Queue: Vyshu Khota <vyshu@google.com>
Diffstat (limited to 'scripts/update_payload/payload.py')
-rw-r--r-- | scripts/update_payload/payload.py | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/scripts/update_payload/payload.py b/scripts/update_payload/payload.py index ea5ed308..61423a9f 100644 --- a/scripts/update_payload/payload.py +++ b/scripts/update_payload/payload.py @@ -226,31 +226,6 @@ class Payload(object): self.is_init = True - def Describe(self): - """Emits the payload embedded description data to standard output.""" - def _DescribeImageInfo(description, image_info): - """Display info about the image.""" - def _DisplayIndentedValue(name, value): - print(' {:<14} {}'.format(name+':', value)) - - print('%s:' % description) - _DisplayIndentedValue('Channel', image_info.channel) - _DisplayIndentedValue('Board', image_info.board) - _DisplayIndentedValue('Version', image_info.version) - _DisplayIndentedValue('Key', image_info.key) - - if image_info.build_channel != image_info.channel: - _DisplayIndentedValue('Build channel', image_info.build_channel) - - if image_info.build_version != image_info.version: - _DisplayIndentedValue('Build version', image_info.build_version) - - if self.manifest.HasField('old_image_info'): - _DescribeImageInfo('Old Image', self.manifest.old_image_info) - - if self.manifest.HasField('new_image_info'): - _DescribeImageInfo('New Image', self.manifest.new_image_info) - def _AssertInit(self): """Raises an exception if the object was not initialized.""" if not self.is_init: |