Skip to content

Commit

Permalink
Merge "build: Fix Version in releasetools" into n7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Miccia94 authored and Gerrit Code Review committed Jun 15, 2017
2 parents 357c26d + ad0c34a commit d35a6cf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tools/releasetools/ota_from_target_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,12 +723,10 @@ def WriteFullOTAPackage(input_zip, output_zip):
script.Print("*********************************************");


aicpv = GetBuildProp("ro.aicp.version", OPTIONS.info_dict)
build = GetBuildProp("ro.aicp.version", OPTIONS.info_dict)
if os.getenv("AICP_BUILDTYPE") is not None:
build = ' '.join(aicpv.split('_')[3].split('-')).title()
script.Print("* Version: %s"%(build));
elif os.getenv("AICP_NIGHTLY") is not None:
build = ' '.join(aicpv.split('_')[2:]).title()
script.Print("* Version: %s"%(build));
else:
build = GetBuildProp("ro.build.date", OPTIONS.info_dict)
Expand Down

0 comments on commit d35a6cf

Please sign in to comment.