Commit 37103c9c authored by thestig@chromium.org's avatar thestig@chromium.org

Sort the fetch recipe listing.

Review URL: https://codereview.chromium.org/1360493002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@296782 0039d316-1c4b-4281-b951-d872f2087c98
parent 605d81df
......@@ -235,9 +235,12 @@ def usage(msg=None):
--no-history Perform shallow clones, don't fetch the full git history.
Valid fetch recipes:""") % os.path.basename(sys.argv[0])
for fname in os.listdir(os.path.join(SCRIPT_PATH, 'recipes')):
if fname.endswith('.py'):
print ' ' + fname[:-3]
recipes_dir = os.path.join(SCRIPT_PATH, 'recipes')
recipes = [f[:-3] for f in os.listdir(recipes_dir) if f.endswith('.py')]
recipes.sort()
for fname in recipes:
print ' ' + fname
sys.exit(bool(msg))
......
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