to be upgraded, APKs must have exactly the same set of certs

Change-Id: I0d528d3d55e5ee553e57e63ed1f998172c6306f8
This commit is contained in:
Doug Zongker 2011-11-09 10:32:23 -08:00
parent ddc943da7e
commit 278c9781ec
1 changed files with 2 additions and 2 deletions

View File

@ -347,8 +347,8 @@ class TargetFiles(object):
for i in all:
if i in self.apks:
if i in other.apks:
# in both; should have at least one cert in common
if not (self.apks[i].cert & other.apks[i].cert):
# in both; should have same set of certs
if self.apks[i].certs != other.apks[i].certs:
by_certpair.setdefault((other.apks[i].certs,
self.apks[i].certs), []).append(i)
else: