Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / build / android / gyp / apk_install.py
index c0c9b6b..19a217c 100755 (executable)
@@ -31,7 +31,7 @@ def GetNewMetadata(device, apk_package):
   # org.chromium.chrome.shell.apk
   # -rw-r--r-- system   system    7376582 2013-04-19 16:34 \
   # org.chromium.chrome.shell-1.apk
-  apk_matcher = lambda s: re.match('.*%s(-[0-9]*)?.apk$' % apk_package, s)
+  apk_matcher = lambda s: re.match('.*%s(-[0-9]*)?(.apk)?$' % apk_package, s)
   matches = filter(apk_matcher, output)
   return matches[0] if matches else None