OSDN Git Service

Handle multiple APKs from the same package in check_target_files_signatures.py.
authorTao Bao <tbao@google.com>
Thu, 28 Jul 2016 02:45:43 +0000 (19:45 -0700)
committerTao Bao <tbao@google.com>
Thu, 28 Jul 2016 04:30:16 +0000 (21:30 -0700)
commit1a75fa6493dc87a32a19f13967f8530f9d03103a
tree1ea9ae8a475f082199c2f099a800f10c3b6afcd1
parenta212b9c2503cb1f559c8da6d6b3b24f274bd8baf
Handle multiple APKs from the same package in check_target_files_signatures.py.

We were using the package name as the key to index APKs. APKs from the
same package got messed up and gave wrong signature summary. Switch to
using the package filename as the key, which is identical in a given build.

Also fix the trailing space when printing the signature summary.

Bug: 30418268
Test: Run with a target_files.zip that has multiple APKs from the same package.

Change-Id: I6317e8c05e987c5690915e05c294153d10e2f0ab
(cherry picked from commit 6a54299fbd16a3bd2051f08d5dbdaf94b95bf485)
tools/releasetools/check_target_files_signatures.py