summaryrefslogtreecommitdiffstats
path: root/releasetools.py
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2011-02-10 10:25:35 -0800
committerDoug Zongker <dougz@android.com>2011-02-10 10:25:35 -0800
commit2a5f3182f9ae77749a3048668b257be64724ba4d (patch)
tree780ff1f5508107e8c63cf5dc0fd205443f8fc9ff /releasetools.py
parent303e0247b2248a5e1bbecfeb9cf8ce944ef03146 (diff)
downloaddevice_samsung_crespo-2a5f3182f9ae77749a3048668b257be64724ba4d.zip
device_samsung_crespo-2a5f3182f9ae77749a3048668b257be64724ba4d.tar.gz
device_samsung_crespo-2a5f3182f9ae77749a3048668b257be64724ba4d.tar.bz2
allow use of old radio.img name too, to build incrementals correctly
Change-Id: I1c630e8db8ca9baa141d10fa22c664a992f5a0d5
Diffstat (limited to 'releasetools.py')
-rw-r--r--releasetools.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/releasetools.py b/releasetools.py
index e13ad8e..cf561b7 100644
--- a/releasetools.py
+++ b/releasetools.py
@@ -20,7 +20,7 @@ import common
def FindRadio(zipfile):
matches = []
for name in zipfile.namelist():
- if re.match(r"^RADIO/radio[.].+[.]img$", name):
+ if re.match(r"^RADIO/radio[.](.+[.])?img$", name):
matches.append(name)
if len(matches) > 1:
raise ValueError("multiple radio images in target-files zip!")