From 3eaa1d15d999396d1e120c06d1bd1a08887afa3c Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 17 Apr 2024 17:22:11 +0200 Subject: [PATCH] Remove never-used dependencies call (making a graph). --- cdist | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/cdist b/cdist index c17c1dc..2ba8d44 100755 --- a/cdist +++ b/cdist @@ -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') -- 2.30.2