summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2011-11-09 10:32:23 -0800
committerDoug Zongker <dougz@android.com>2011-11-09 10:32:23 -0800
commit278c9781ec5d2ef289fee635dfcfd8befcfe531b (patch)
tree4d5ae2c55264713e8192d15a4503f8ba014a5883 /tools
parentddc943da7e27d745517c50738c249b567970350e (diff)
downloadbuild-278c9781ec5d2ef289fee635dfcfd8befcfe531b.zip
build-278c9781ec5d2ef289fee635dfcfd8befcfe531b.tar.gz
build-278c9781ec5d2ef289fee635dfcfd8befcfe531b.tar.bz2
to be upgraded, APKs must have exactly the same set of certs
Change-Id: I0d528d3d55e5ee553e57e63ed1f998172c6306f8
Diffstat (limited to 'tools')
-rwxr-xr-xtools/releasetools/check_target_files_signatures4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/releasetools/check_target_files_signatures b/tools/releasetools/check_target_files_signatures
index 4e83129..7cb3e8a 100755
--- a/tools/releasetools/check_target_files_signatures
+++ b/tools/releasetools/check_target_files_signatures
@@ -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: