Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion planemo/conda.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def collect_conda_targets(ctx, paths, recursive=False, found_tool_callback=None)
else:
real_paths.append(path)

for (tool_path, tool_source) in yield_tool_sources_on_paths(ctx, real_paths, recursive=recursive):
for (tool_path, tool_source) in yield_tool_sources_on_paths(ctx, real_paths, recursive=recursive, exclude_deprecated=True):
if found_tool_callback:
found_tool_callback(tool_path)
for target in tool_source_conda_targets(tool_source):
Expand Down
4 changes: 3 additions & 1 deletion planemo/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ def uris_to_paths(ctx, uris):
return paths


def yield_tool_sources_on_paths(ctx, paths, recursive=False, yield_load_errors=True):
def yield_tool_sources_on_paths(ctx, paths, recursive=False, yield_load_errors=True, exclude_deprecated=False):
for path in paths:
for (tool_path, tool_source) in yield_tool_sources(ctx, path, recursive, yield_load_errors):
if exclude_deprecated and 'deprecated' in tool_path:
continue
yield (tool_path, tool_source)


Expand Down