forked from openkylin/platform_build
releasetools: Remove the parsing of META/imagesizes.txt.
The file has been removed from target-files.zip since commit
c19a8d5590
(Gingerbread), whose info has
been consolidated into META/misc_info.txt.
Test: `m dist`
Change-Id: Ic144457954f5742ea082dcd9ffbea71df4afe46e
This commit is contained in:
parent
6c0ddf2480
commit
41fb7d27cf
|
@ -221,21 +221,6 @@ def LoadInfoDict(input_file, input_dir=None):
|
||||||
vendor_base_fs_file,))
|
vendor_base_fs_file,))
|
||||||
del d["vendor_base_fs_file"]
|
del d["vendor_base_fs_file"]
|
||||||
|
|
||||||
try:
|
|
||||||
data = read_helper("META/imagesizes.txt")
|
|
||||||
for line in data.split("\n"):
|
|
||||||
if not line:
|
|
||||||
continue
|
|
||||||
name, value = line.split(" ", 1)
|
|
||||||
if not value:
|
|
||||||
continue
|
|
||||||
if name == "blocksize":
|
|
||||||
d[name] = value
|
|
||||||
else:
|
|
||||||
d[name + "_size"] = value
|
|
||||||
except KeyError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
def makeint(key):
|
def makeint(key):
|
||||||
if key in d:
|
if key in d:
|
||||||
d[key] = int(d[key], 0)
|
d[key] = int(d[key], 0)
|
||||||
|
|
Loading…
Reference in New Issue