From 508d11515a4f8ac768829b56486c1b660b8f247e Mon Sep 17 00:00:00 2001 From: martinahansen Date: Thu, 26 Sep 2013 10:18:14 +0000 Subject: [PATCH] disabling buggy bzip2-ruby git-svn-id: http://biopieces.googlecode.com/svn/trunk@2221 74ccb610-7750-0410-82ae-013aeee3265d --- code_ruby/lib/maasha/filesys.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code_ruby/lib/maasha/filesys.rb b/code_ruby/lib/maasha/filesys.rb index 6a6067f..4f58898 100644 --- a/code_ruby/lib/maasha/filesys.rb +++ b/code_ruby/lib/maasha/filesys.rb @@ -23,7 +23,8 @@ # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< require 'zlib' -require 'bzip2' +# require 'bzip2' +require 'open3' # Error class for all exceptions to do with Filesys. class FilesysError < StandardError; end @@ -51,7 +52,8 @@ class Filesys when :gzip ios = Zlib::GzipWriter.new File.open(file, mode, options) when :bzip, :bzip2 - ios = Bzip2::Writer.new File.open(file, mode, options) + # ios = Bzip2::Writer.new File.open(file, mode, options) # TODO being pissed with buggy bzip2 gem. + ios, = Open3.pipeline_w("bzip2 -c", out: file) else ios = File.open(file, mode, options) end -- 2.39.2