diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-04-17 17:22:11 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-04-17 17:22:11 +0200 |
| commit | 3eaa1d15d999396d1e120c06d1bd1a08887afa3c (patch) | |
| tree | 85c10bc463d75a5c5ba95f635e9d5926c258f9cc | |
| parent | 102700a293c04db762164310947ca28180b57a11 (diff) | |
Remove never-used dependencies call (making a graph).
| -rwxr-xr-x | cdist | 15 |
1 files changed, 1 insertions, 14 deletions
@@ -1127,7 +1127,7 @@ class Tree: dep_options = d[2] if len(d) > 2 else {} for i in dep.dependencies(dep_options): yield i - yield (dep, dep_options, self) + yield (dep, dep_options) def checkout_dependencies(self, options={}): for i in self.dependencies(options): @@ -1407,19 +1407,6 @@ def main(): shutil.copytree('.', args.output) target.cleanup() - elif args.command == 'dependencies': - if args.target is None: - raise Error('you must specify -t or --target') - if args.checkout is None: - raise Error('you must specify -c or --checkout') - - target = target_factory(args) - tree = globals.trees.get(args.project, args.checkout, target) - print("strict digraph {") - for d in list(tree.dependencies({})): - print("%s -> %s;" % (d[2].name.replace("-", "-"), d[0].name.replace("-", "_"))) - print("}") - elif args.command == 'notarize': if args.dmgs is None: raise Error('you must specify ---dmgs') |
