summaryrefslogtreecommitdiffstats
path: root/releasetools.py
diff options
context:
space:
mode:
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!")