Skip to content
Snippets Groups Projects
Commit 6cca8098 authored by Haibo Huang's avatar Haibo Huang Committed by android-build-merger
Browse files

[Updater] When checkall, ignore sub dirs when a METADATA is found

am: 83aed73a

Change-Id: Ie98ac6af77ecdce0350edad8b99276d7f1cb2035
parents a1024615 83aed73a
No related branches found
No related tags found
No related merge requests found
...@@ -128,8 +128,11 @@ def update(args): ...@@ -128,8 +128,11 @@ def update(args):
def checkall(args): def checkall(args):
"""Handler for checkall command.""" """Handler for checkall command."""
for root, _dirs, files in sorted(os.walk(args.path)): for root, dirs, files in os.walk(args.path):
dirs.sort(key=lambda d: d.lower())
if fileutils.METADATA_FILENAME in files: if fileutils.METADATA_FILENAME in files:
# Skip sub directories.
dirs = []
check_update(root) check_update(root)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment