Fix lint errors on ota_utils.py
Pylint reports lot of error on ota_utils.py, because some members of OPTIONS object aren't defined. This CL moves some definition from ota_from_target_files.py to ota_utils.py to fix these lint errors. Test: Make an OTA package Change-Id: I1e9f255d5919712b13329046c72650dfac184701
This commit is contained in:
@@ -21,6 +21,18 @@ from common import (ZipDelete, ZipClose, OPTIONS, MakeTempFile,
|
||||
ZipWriteStr, BuildInfo, LoadDictionaryFromFile,
|
||||
SignFile, PARTITIONS_WITH_CARE_MAP, PartitionBuildProps)
|
||||
|
||||
|
||||
OPTIONS.no_signing = False
|
||||
OPTIONS.force_non_ab = False
|
||||
OPTIONS.wipe_user_data = False
|
||||
OPTIONS.downgrade = False
|
||||
OPTIONS.key_passwords = {}
|
||||
OPTIONS.package_key = None
|
||||
OPTIONS.incremental_source = None
|
||||
OPTIONS.retrofit_dynamic_partitions = False
|
||||
OPTIONS.output_metadata_path = None
|
||||
OPTIONS.boot_variable_file = None
|
||||
|
||||
METADATA_NAME = 'META-INF/com/android/metadata'
|
||||
UNZIP_PATTERN = ['IMAGES/*', 'META/*', 'OTA/*', 'RADIO/*']
|
||||
|
||||
|
Reference in New Issue
Block a user