Commit c592ff89 authored by agrieve's avatar agrieve Committed by Commit bot

resource_sizes.py: Don't print pak file breakdown when there are none

This is the case for CronetSample.apk

BUG=none

Review-Url: https://codereview.chromium.org/2566293002
Cr-Commit-Position: refs/heads/master@{#437940}
parent 8906ce8b
...@@ -366,6 +366,9 @@ def PrintPakAnalysis(apk_filename, min_pak_resource_size): ...@@ -366,6 +366,9 @@ def PrintPakAnalysis(apk_filename, min_pak_resource_size):
print 'Total uncompressed size: %s' % _FormatBytes(total_file_size) print 'Total uncompressed size: %s' % _FormatBytes(total_file_size)
print print
if not paks:
return
# Output the table of details about all pak files. # Output the table of details about all pak files.
print '%25s%11s%21s%21s' % ( print '%25s%11s%21s%21s' % (
'FILENAME', 'RESOURCES', 'COMPRESSED SIZE', 'UNCOMPRESSED SIZE') 'FILENAME', 'RESOURCES', 'COMPRESSED SIZE', 'UNCOMPRESSED SIZE')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment