commit/galaxy-central: greg: Handle files moved from one directory location to another in a change set in a tool shed repository.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/875949358909/ changeset: 875949358909 user: greg date: 2012-09-28 20:25:57 summary: Handle files moved from one directory location to another in a change set in a tool shed repository. affected #: 1 file diff -r 485932c40a2e1b1ebcf786c0ffaf288a243d3d11 -r 8759493589092eb06138a75cf020f9cd8348106f lib/galaxy/webapps/community/controllers/common.py --- a/lib/galaxy/webapps/community/controllers/common.py +++ b/lib/galaxy/webapps/community/controllers/common.py @@ -401,7 +401,12 @@ for ctx_file in manifest_ctx.files(): ctx_file_name = strip_path( ctx_file ) if ctx_file_name == stripped_filename: - fctx = manifest_ctx[ ctx_file ] + try: + fctx = manifest_ctx[ ctx_file ] + except LookupError: + # The ctx_file may have been moved in the change set. For example, 'ncbi_blastp_wrapper.xml' was moved to + # 'tools/ncbi_blast_plus/ncbi_blastp_wrapper.xml', so keep looking for the file until we find the new location. + continue fh = tempfile.NamedTemporaryFile( 'wb' ) tmp_filename = fh.name fh.close() Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket