Merge "releasetools: Fix the bug with TARGET_NO_RECOVERY."

am: 4ed5735a68

* commit '4ed5735a68090e9eec240693ff6b97ea57576151':
  releasetools: Fix the bug with TARGET_NO_RECOVERY.
This commit is contained in:
Tao Bao 2015-11-20 04:50:31 +00:00 committed by android-build-merger
commit 733ba8f0e4
1 changed files with 5 additions and 2 deletions
tools/releasetools

View File

@ -211,8 +211,11 @@ def LoadInfoDict(input_file, input_dir=None):
makeint("boot_size")
makeint("fstab_version")
d["fstab"] = LoadRecoveryFSTab(read_helper, d["fstab_version"],
d.get("system_root_image", False))
if d.get("no_recovery", False) == "true":
d["fstab"] = None
else:
d["fstab"] = LoadRecoveryFSTab(read_helper, d["fstab_version"],
d.get("system_root_image", False))
d["build.prop"] = LoadBuildProp(read_helper)
return d