Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

recursive shed_diff with directories not yet in Tool Shed #208

Merged
merged 1 commit into from
May 15, 2015

Conversation

peterjc
Copy link
Contributor

@peterjc peterjc commented May 14, 2015

Previously this error condition would mean a recursive planemo shed_diff would fail on repository not yet uploaded to the Tool Shed. It now prints an error message but continues.

Resolves GitHub issue #201

TODO: Ensure that shed_diff on a single repository gives an error return code, e.g.

$ planemo shed_diff ~/repositories/pico_galaxy/tools/seq_concatenate/ && echo "$? returned"
Repository [seq_concatenate] does not exist in the targeted Tool Shed, can't do shed_diff
0 returned

Previously this error condition would mean a recursive shed_diff
would fail on repository not yet uploaded to the Tool Shed. It
now prints an error message but continues.

Resolves GitHub issue galaxyproject#201

TODO: Ensure that shed_diff on a single repository gives an error
return code, e.g.

$ planemo shed_diff ~/repositories/pico_galaxy/tools/seq_concatenate/ && echo "$? returned"
Repository [seq_concatenate] does not exist in the targeted Tool Shed, can't do shed_diff
0 returned
error("Repository [%s] does not exist in the targeted Tool Shed, can't do shed_diff"
% realized_repository.name)
# TODO - Should this return an error code which can be checked for in recursive mode?
return 0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like if you just return a non-zero value here the exit code would be handled correctly by the layers above this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the TODO, we need a clean way to signal to the recursive shed_diff that this error should be ignored (i.e. a warning to the terminal only), whereas in non-recursive mode it really is an error which should quit with a non-zero return code.

@jmchilton jmchilton merged commit 359c9ed into galaxyproject:master May 15, 2015
@martenson
Copy link
Member

thank you @peterjc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants