Commits

Anonymous committed ceee2d8

need to ignore the 2nd returned arg when adding files

  • Participants
  • Parent commits bafdcb8

Comments (0)

Files changed (1)

File lib/mrt/ingest/iobject.rb

           @name = File.basename(where.to_s) if @name.nil?
           if @prefetch then
             digest = Digest::MD5.new()
-            @uri = server.add_file do |f|
-              open(where) do |u|
+            @uri, ignore = server.add_file do |f|
+              open(where, (options[:prefetch_options] || {})) do |u|
                 while (buff = u.read(1024)) do
                   f << buff
                   digest << buff