summaryrefslogtreecommitdiff
path: root/scripts/update_device.py
diff options
context:
space:
mode:
authorKelvin Zhang <zhangkelvin@google.com>2021-04-15 22:21:09 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-04-15 22:21:09 +0000
commitbf99ac176c54c7ab0d78acb6395919071c2595d9 (patch)
treee98628d1faae581371ce6ce7d486e20007dec674 /scripts/update_device.py
parent25b6a448a3dfe8ea9502da885e85537335e0c309 (diff)
parent869754e3342d10a6412b6f06fe093fa38eaaa2ec (diff)
Rename no-care-map flag am: ffd2144ccd am: 869754e334
Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1675666 Change-Id: Ib8bc6faf829e6ea73030546ba3d3293abb6b6a92
Diffstat (limited to 'scripts/update_device.py')
-rwxr-xr-xscripts/update_device.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/update_device.py b/scripts/update_device.py
index 3ce40a55..7313d7c3 100755
--- a/scripts/update_device.py
+++ b/scripts/update_device.py
@@ -430,12 +430,12 @@ def main():
help='Do not perform slot switch after the update.')
parser.add_argument('--no-postinstall', action='store_true',
help='Do not execute postinstall scripts after the update.')
- parser.add_argument('--allocate_only', action='store_true',
+ parser.add_argument('--allocate-only', action='store_true',
help='Allocate space for this OTA, instead of actually \
applying the OTA.')
- parser.add_argument('--verify_only', action='store_true',
+ parser.add_argument('--verify-only', action='store_true',
help='Verify metadata then exit, instead of applying the OTA.')
- parser.add_argument('--no_care_map', action='store_true',
+ parser.add_argument('--no-care-map', action='store_true',
help='Do not push care_map.pb to device.')
args = parser.parse_args()
logging.basicConfig(
@@ -486,7 +486,7 @@ def main():
care_map_fp.write(zfp.read(CARE_MAP_ENTRY_NAME))
care_map_fp.flush()
dut.adb(["push", care_map_fp.name,
- "/data/ota_package/" + CARE_MAP_ENTRY_NAME])
+ "/data/ota_package/" + CARE_MAP_ENTRY_NAME])
if args.file:
# Update via pushing a file to /data.