summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhomart Mukhamejanov <zhomart@google.com>2018-06-07 18:13:12 +0200
committerandroid-build-merger <android-build-merger@google.com>2018-06-07 18:13:12 +0200
commit30f1d99a91d60412a852b84bafde488e66127dcc (patch)
treea47a3c92f931c517065c6f9793f1fb990fe3226d
parentMerge "updater_sample: Add suspend/resume update" am: 382691fbb0 am: f4c1420742 (diff)
parentMerge "updater_sample: change gen_update_config args" am: eeabbecb64 (diff)
downloadandroid_bootable_recovery-30f1d99a91d60412a852b84bafde488e66127dcc.tar
android_bootable_recovery-30f1d99a91d60412a852b84bafde488e66127dcc.tar.gz
android_bootable_recovery-30f1d99a91d60412a852b84bafde488e66127dcc.tar.bz2
android_bootable_recovery-30f1d99a91d60412a852b84bafde488e66127dcc.tar.lz
android_bootable_recovery-30f1d99a91d60412a852b84bafde488e66127dcc.tar.xz
android_bootable_recovery-30f1d99a91d60412a852b84bafde488e66127dcc.tar.zst
android_bootable_recovery-30f1d99a91d60412a852b84bafde488e66127dcc.zip
-rwxr-xr-xupdater_sample/tools/gen_update_config.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/updater_sample/tools/gen_update_config.py b/updater_sample/tools/gen_update_config.py
index 7fb64f7fc..b43e49df8 100755
--- a/updater_sample/tools/gen_update_config.py
+++ b/updater_sample/tools/gen_update_config.py
@@ -131,10 +131,10 @@ def main(): # pylint: disable=missing-docstring
choices=ab_install_type_choices,
help='A/B update installation type')
parser.add_argument('--ab_force_switch_slot',
- type=bool,
default=False,
- help='if set true device will boot to a new slot, otherwise user manually '
- 'switches slot on the screen')
+ action='store_true',
+ help='if set device will boot to a new slot, otherwise user '
+ 'manually switches slot on the screen')
parser.add_argument('package',
type=str,
help='OTA package zip file')