Merge "releasetools: Fix one missing case for --oem_no_mount."

am: 4e677900f7

* commit '4e677900f7b0017fcd926dc66d778e355e6a1bae':
  releasetools: Fix one missing case for --oem_no_mount.
This commit is contained in:
Tao Bao 2016-03-04 19:30:01 +00:00 committed by android-build-merger
commit aa82bd62cb
1 changed files with 2 additions and 1 deletions

View File

@ -1424,7 +1424,8 @@ def WriteIncrementalOTAPackage(target_zip, source_zip, output_zip):
if oem_props is not None and len(oem_props) > 0:
if OPTIONS.oem_source is None:
raise common.ExternalError("OEM source required for this build")
script.Mount("/oem", recovery_mount_options)
if not OPTIONS.oem_no_mount:
script.Mount("/oem", recovery_mount_options)
oem_dict = common.LoadDictionaryFromLines(
open(OPTIONS.oem_source).readlines())