map -e with no cert to PRESIGNED

Needed for backwards compatibility with scripts that use -e.
This commit is contained in:
Doug Zongker
2009-12-15 17:27:49 -08:00
parent 5125e441b1
commit decf995c59

View File

@@ -91,6 +91,8 @@ def GetApkCerts(tf_zip):
# apply all the -e options, overriding anything in the file # apply all the -e options, overriding anything in the file
for apk, cert in OPTIONS.extra_apks.iteritems(): for apk, cert in OPTIONS.extra_apks.iteritems():
if not cert:
cert = "PRESIGNED"
certmap[apk] = OPTIONS.key_map.get(cert, cert) certmap[apk] = OPTIONS.key_map.get(cert, cert)
return certmap return certmap