Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2401)

Unified Diff: build/android/resource_sizes.py

Issue 2566293002: 🎅 resource_sizes.py: Don't print pak file breakdown when there are none (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/resource_sizes.py
diff --git a/build/android/resource_sizes.py b/build/android/resource_sizes.py
index 56e5a4969f6043df9f2f1f5b05e21c91dbc6471b..650a7cecd8fc773f8cca0e5717aff61fa169c634 100755
--- a/build/android/resource_sizes.py
+++ b/build/android/resource_sizes.py
@@ -366,6 +366,9 @@ def PrintPakAnalysis(apk_filename, min_pak_resource_size):
print 'Total uncompressed size: %s' % _FormatBytes(total_file_size)
print
+ if not paks:
+ return
+
# Output the table of details about all pak files.
print '%25s%11s%21s%21s' % (
'FILENAME', 'RESOURCES', 'COMPRESSED SIZE', 'UNCOMPRESSED SIZE')
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698