super-rsu: fix logic for determining 'force' opt.
This changes behavior of determining whether or not to force a flash
operation. Without this change, if 'force' is present in a flash spec,
this value (True or False) will always be used and not the command line
argument '--force-flash'.
@@ -682,7 +682,7 @@ class pac(object):
flash_type = flash_info['type']
flash_rev = flash_info.get('revision', '')
filename = flash_info['filename']
- force = flash_info.get('force', args.force_flash)
+ force = flash_info.get('force', False) or args.force_flash
if os.path.exists(os.path.join(flash_dir, filename)):
filename = os.path.join(flash_dir, filename)
