1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/89dbce43ba88/ changeset: 89dbce43ba88 user: inithello date: 2012-08-27 18:52:43 summary: Fixed truncation of downloaded fasta files. affected #: 1 file diff -r 90aa7ae565d60d38c90f444322a68b55fc895701 -r 89dbce43ba88afdc3e6265feea7e7e042bb030a7 lib/galaxy/jobs/deferred/genome_transfer.py --- a/lib/galaxy/jobs/deferred/genome_transfer.py +++ b/lib/galaxy/jobs/deferred/genome_transfer.py @@ -115,15 +115,16 @@ files = tar.getmembers() for filename in files: z = tar.extractfile(filename) - try: - chunk = z.read( CHUNK_SIZE ) - except IOError: - os.close( fd ) - log.error( 'Problem decompressing compressed data' ) - exit() - if not chunk: - break - os.write( fd, chunk ) + while 1: + try: + chunk = z.read( CHUNK_SIZE ) + except IOError: + os.close( fd ) + log.error( 'Problem decompressing compressed data' ) + exit() + if not chunk: + break + os.write( fd, chunk ) os.write( fd, '\n' ) os.close( fd ) tar.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.