diff options
author | Doug Zongker <dougz@android.com> | 2010-09-16 13:01:26 -0700 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2010-09-16 13:01:26 -0700 |
commit | ec5ffbabd3a3ba65bac934305f7ffcb7e15fb744 (patch) | |
tree | 4b6acd4539423d2368377d41814d73c853b67218 /tools | |
parent | c77a9ad444d49e2ad777678cf5671f0a94f44ffb (diff) | |
download | build-ec5ffbabd3a3ba65bac934305f7ffcb7e15fb744.zip build-ec5ffbabd3a3ba65bac934305f7ffcb7e15fb744.tar.gz build-ec5ffbabd3a3ba65bac934305f7ffcb7e15fb744.tar.bz2 |
allow partition sizes in hex (when prefixed with 0x)
Change-Id: I806879fd496304c449ff5315b0ef48fd766d6428
Diffstat (limited to 'tools')
-rw-r--r-- | tools/releasetools/common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/releasetools/common.py b/tools/releasetools/common.py index 8b163c0..44291d0 100644 --- a/tools/releasetools/common.py +++ b/tools/releasetools/common.py @@ -94,12 +94,12 @@ def LoadMaxSizes(info): pieces = line.split() if len(pieces) != 2: continue image = pieces[0] - size = int(pieces[1]) + size = int(pieces[1], 0) OPTIONS.max_image_size[image + ".img"] = size except IOError, e: if e.errno == errno.ENOENT: def copy(x, y): - if x+y in info: OPTIONS.max_image_size[x+".img"] = int(info[x+y]) + if x+y in info: OPTIONS.max_image_size[x+".img"] = int(info[x+y], 0) copy("blocksize", "") copy("boot", "_size") copy("recovery", "_size") |