| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2015 The Chromium Authors. All rights reserved. | 2 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Tool to interact with recipe repositories. | 6 """Tool to interact with recipe repositories. |
| 7 | 7 |
| 8 This tool operates on the nearest ancestor directory containing an | 8 This tool operates on the nearest ancestor directory containing an |
| 9 infra/config/recipes.cfg. | 9 infra/config/recipes.cfg. |
| 10 """ | 10 """ |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 v[project_id] = path | 203 v[project_id] = path |
| 204 | 204 |
| 205 | 205 |
| 206 def depgraph(package_deps, args): | 206 def depgraph(package_deps, args): |
| 207 from recipe_engine import depgraph | 207 from recipe_engine import depgraph |
| 208 from recipe_engine import loader | 208 from recipe_engine import loader |
| 209 | 209 |
| 210 _, config_file = get_package_config(args) | 210 _, config_file = get_package_config(args) |
| 211 universe = loader.RecipeUniverse(package_deps, config_file) | 211 universe = loader.RecipeUniverse(package_deps, config_file) |
| 212 | 212 |
| 213 depgraph.main(universe, ignore_packages=args.ignore_package, | 213 depgraph.main(universe, package_deps.root_package, |
| 214 stdout=args.output) | 214 ignore_packages=args.ignore_package, stdout=args.output) |
| 215 | 215 |
| 216 | 216 |
| 217 def doc(package_deps, args): | 217 def doc(package_deps, args): |
| 218 from recipe_engine import doc | 218 from recipe_engine import doc |
| 219 from recipe_engine import loader | 219 from recipe_engine import loader |
| 220 | 220 |
| 221 _, config_file = get_package_config(args) | 221 _, config_file = get_package_config(args) |
| 222 universe = loader.RecipeUniverse(package_deps, config_file) | 222 universe = loader.RecipeUniverse(package_deps, config_file) |
| 223 | 223 |
| 224 doc.main(universe) | 224 doc.main(universe) |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 | 387 |
| 388 Warmly, | 388 Warmly, |
| 389 recipes.py | 389 recipes.py |
| 390 """ | 390 """ |
| 391 return 1 | 391 return 1 |
| 392 | 392 |
| 393 return 0 | 393 return 0 |
| 394 | 394 |
| 395 if __name__ == '__main__': | 395 if __name__ == '__main__': |
| 396 sys.exit(main()) | 396 sys.exit(main()) |
| OLD | NEW |