You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by to...@apache.org on 2010/07/09 20:36:43 UTC

svn commit: r962631 - in /buildr/trunk: CHANGELOG lib/buildr/packaging/ziptask.rb

Author: toulmean
Date: Fri Jul  9 18:36:43 2010
New Revision: 962631

URL: http://svn.apache.org/viewvc?rev=962631&view=rev
Log:
Follow up on BUILDR-326, binary safe for Windows

Modified:
    buildr/trunk/CHANGELOG
    buildr/trunk/lib/buildr/packaging/ziptask.rb

Modified: buildr/trunk/CHANGELOG
URL: http://svn.apache.org/viewvc/buildr/trunk/CHANGELOG?rev=962631&r1=962630&r2=962631&view=diff
==============================================================================
--- buildr/trunk/CHANGELOG (original)
+++ buildr/trunk/CHANGELOG Fri Jul  9 18:36:43 2010
@@ -5,6 +5,7 @@
 * Fixed: BUILDR-225 ArchiveTask#merge, not according to doc
 * Fixed: BUILDR-256 Automatically installing gems aborts rspec test runner (Rhett Sutphin)
 * Fixed: BUILDR-317 ecj compiler
+* Fixed: BUILDR-326 follow up: binary safe untarring on Windows (Sam Hendley)
 * Fixed: BUILDR-342 The jruby gem installer invokes the removed Gem.manage_gems function (Rhett Sutphin)
 * Fixed: BUILDR-436 release task should only replace "-SNAPSHOT" (spec from Jean-Philippe Caruana)
 * Fixed: BUILDR-464 Improve the versioning of Buildr (Rhett Sutphin)

Modified: buildr/trunk/lib/buildr/packaging/ziptask.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/packaging/ziptask.rb?rev=962631&r1=962630&r2=962631&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/packaging/ziptask.rb (original)
+++ buildr/trunk/lib/buildr/packaging/ziptask.rb Fri Jul  9 18:36:43 2010
@@ -160,7 +160,7 @@ module Buildr
                   trace "Extracting #{dest}"
                   mkpath File.dirname(dest) rescue nil
                   #entry.restore_permissions = true
-                  File.open(dest, 'w') {|f| f.write entry.read}
+                  File.open(dest, 'wb') {|f| f.write entry.read}
                 end
               end
             end