diff options
author | Ying Wang <wangying@google.com> | 2011-09-09 16:35:53 -0700 |
---|---|---|
committer | Ying Wang <wangying@google.com> | 2011-09-09 17:07:23 -0700 |
commit | e5e8c5f218c633b42b3814e36cd062eff099daed (patch) | |
tree | 7f1d64f79d0148f60e43ebc7a4e390cbdd4cedd0 /tools/fileslist.py | |
parent | 44145f5b7e2240357e986cabc7bb9f2ff48eaf44 (diff) | |
download | build-e5e8c5f218c633b42b3814e36cd062eff099daed.zip build-e5e8c5f218c633b42b3814e36cd062eff099daed.tar.gz build-e5e8c5f218c633b42b3814e36cd062eff099daed.tar.bz2 |
Move forward installed-files.txt in the dependency graph
Bug: 5265104
- Move installed-files.txt forward to ahead of system.img in the
dependency graph, so that even if the system.img fails to build due to
too large size we can still get the size stats.
- Change the script tools/fileslist.py to sort items in decreasing size.
Change-Id: I5913bc51971e341ffbfcf3fa449c987f126e409b
Diffstat (limited to 'tools/fileslist.py')
-rwxr-xr-x | tools/fileslist.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/fileslist.py b/tools/fileslist.py index ae1b4b6..a11efaa 100755 --- a/tools/fileslist.py +++ b/tools/fileslist.py @@ -15,7 +15,7 @@ # limitations under the License. # -import os, sys +import operator, os, sys def get_file_size(path): st = os.lstat(path) @@ -37,9 +37,9 @@ def main(argv): output.append(row) except os.error: pass + output.sort(key=operator.itemgetter(0), reverse=True) for row in output: print "%12d %s" % row if __name__ == '__main__': main(sys.argv) - |