~brightbox/ruby-passenger/deb-passenger-stable

« back to all changes in this revision

Viewing changes to lib/phusion_passenger/standalone/runtime_installer.rb

  • Committer: John Leach
  • Date: 2012-07-25 17:04:24 UTC
  • mfrom: (1.1.31)
  • Revision ID: git-v1:2279d0d8938b2839da40deab146563b42f9895ec
Merge tag 'upstream/3.0.14' into stable

Upstream version 3.0.14

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#  encoding: utf-8
 
2
#
1
3
#  Phusion Passenger - http://www.modrails.com/
2
4
#  Copyright (c) 2010 Phusion
3
5
#
251
253
                File.open(filename, 'rb') do |f|
252
254
                        IO.popen("tar xzf -", "w") do |io|
253
255
                                buffer = ''
 
256
                                buffer = buffer.force_encoding('binary') if buffer.respond_to?(:force_encoding)
254
257
                                total_size = File.size(filename)
255
258
                                bytes_read = 0
256
259
                                yield(bytes_read, total_size)