Commit 2e3cb8bc authored by Patrick J Cherry's avatar Patrick J Cherry
Browse files

Updated Rakefile to use digest/md5 not just md5.

parent be1e168f
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'fileutils' require 'fileutils'
require 'rake/clean' require 'rake/clean'
require 'md5' require 'digest/md5'
require 'pp' require 'pp'
DEBEMAIL=ENV["DEBEMAIL"] || "symbiosis@bytemark.co.uk" DEBEMAIL=ENV["DEBEMAIL"] || "symbiosis@bytemark.co.uk"
...@@ -120,7 +120,7 @@ EOF ...@@ -120,7 +120,7 @@ EOF
# Add the md5sums for each prereq. # Add the md5sums for each prereq.
# #
t.prerequisites.each do |prereq| t.prerequisites.each do |prereq|
release << " "+[ MD5.hexdigest(File.read(prereq)), release << " "+[ Digest::MD5.hexdigest(File.read(prereq)),
File.stat(prereq).size, File.stat(prereq).size,
prereq].join(" ")+"\n" prereq].join(" ")+"\n"
end end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment