Skip to content

Commit

Permalink
Merge pull request #203 from galaxyproject/martenson-patch-1
Browse files Browse the repository at this point in the history
attempt at fixing silent failure
  • Loading branch information
jmchilton committed May 13, 2015
2 parents 4125a94 + 48e0ca7 commit 3501358
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion planemo/shed/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,14 @@ def upload_repository(ctx, realized_repository, **kwds):
repo_id = realized_repository.create(ctx, tsi)
# failing to create the repo, give up
if repo_id is None:
error("Repository [%s] does not exist in the targeted Tool Shed." % name)
return -1

if kwds["check_diff"]:
is_diff = diff_repo(ctx, realized_repository, **kwds)
if not is_diff:
name = realized_repository.name
info("Repositry [%s] not different, skipping upload." % name)
info("Repository [%s] not different, skipping upload." % name)
return 0

# TODO: support updating repo information if it changes in the config file
Expand Down

0 comments on commit 3501358

Please sign in to comment.