summaryrefslogtreecommitdiff
path: root/scripts/update_payload/checker.py
diff options
context:
space:
mode:
authorGilad Arnold <garnold@chromium.org>2015-02-05 13:01:09 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-02-06 14:17:20 +0000
commit5bc7fbea01f944192f146b97cd83050858cddcc5 (patch)
treeca173b4f18aca3b5a8f238140b4359ac7e104cbc /scripts/update_payload/checker.py
parentf583a7d7c5255ec0e2321db60b7690c25e58c290 (diff)
paycheck: Allow payloads with no operations.
Due to a fix to the delta generator (CL:246670) we may actually end up with delta payloads that contain no operations (e.g. a delta from an image to itself). This is a good thing and we want paycheck to not rule out trivial deltas such as these. BUG=chromium:453659 TEST=Empty delta verification passes Change-Id: I461f48bba743a5b96b77aa3f55697ffc5cb8ea0e Reviewed-on: https://chromium-review.googlesource.com/246673 Tested-by: Gilad Arnold <garnold@chromium.org> Reviewed-by: Chris Sosa <sosa@chromium.org> Reviewed-by: Don Garrett <dgarrett@chromium.org> Commit-Queue: Gilad Arnold <garnold@chromium.org>
Diffstat (limited to 'scripts/update_payload/checker.py')
-rw-r--r--scripts/update_payload/checker.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/scripts/update_payload/checker.py b/scripts/update_payload/checker.py
index c2e348ff..d7d86c04 100644
--- a/scripts/update_payload/checker.py
+++ b/scripts/update_payload/checker.py
@@ -593,11 +593,6 @@ class PayloadChecker(object):
'New rootfs content (%d) exceed partition size (%d).' %
(self.new_rootfs_fs_size, rootfs_part_size))
- # Check: Payload must contain at least one operation.
- if not(len(manifest.install_operations) or
- len(manifest.kernel_install_operations)):
- raise error.PayloadError('Payload contains no operations.')
-
def _CheckLength(self, length, total_blocks, op_name, length_name):
"""Checks whether a length matches the space designated in extents.