~awstools-dev/ubuntu/raring/ec2-ami-tools/raring

« back to all changes in this revision

Viewing changes to debian/patches/ruby-1.9-cleanup.patch

  • Committer: Scott Moser
  • Date: 2012-12-10 22:26:47 UTC
  • Revision ID: smoser@ubuntu.com-20121210222647-b8055b9q3ibkyx91
debian/patches/ruby-1.9-cleanup.patch
fix some errors when running with ruby 1.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- a/lib/ec2/amitools/format.rb
 
2
+++ b/lib/ec2/amitools/format.rb
 
3
@@ -58,7 +58,7 @@ module Format
 
4
   def Format.hex2bin(hex)
 
5
     hex = '0' + hex unless (hex.size % 2) == 0
 
6
     data = StringIO.new
 
7
-    hex.to_a.pack('H*').each {|digit| data.write(digit)}
 
8
+    Array(Array(hex).pack('H*')).each {|digit| data.write(digit)}
 
9
     data.string
 
10
   end
 
11