summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-04-17 17:22:11 +0200
committerCarl Hetherington <cth@carlh.net>2024-04-17 17:22:11 +0200
commit3eaa1d15d999396d1e120c06d1bd1a08887afa3c (patch)
tree85c10bc463d75a5c5ba95f635e9d5926c258f9cc
parent102700a293c04db762164310947ca28180b57a11 (diff)
Remove never-used dependencies call (making a graph).
-rwxr-xr-xcdist15
1 files changed, 1 insertions, 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')