You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by as...@apache.org on 2008/10/08 23:38:13 UTC
svn commit: r702997 - /incubator/buildr/trunk/rakelib/apache.rake
Author: assaf
Date: Wed Oct 8 14:38:13 2008
New Revision: 702997
URL: http://svn.apache.org/viewvc?rev=702997&view=rev
Log:
And another minor fix to Rakefile
Modified:
incubator/buildr/trunk/rakelib/apache.rake
Modified: incubator/buildr/trunk/rakelib/apache.rake
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/rakelib/apache.rake?rev=702997&r1=702996&r2=702997&view=diff
==============================================================================
--- incubator/buildr/trunk/rakelib/apache.rake (original)
+++ incubator/buildr/trunk/rakelib/apache.rake Wed Oct 8 14:38:13 2008
@@ -65,8 +65,8 @@
puts "Signing packages in staged/distro as user #{gpg_user}"
FileList['staged/distro/*.{gem,zip,tgz}'].each do |pkg|
bytes = File.open(pkg, 'rb') { |file| file.read }
- File.open(pkg + '.md5', 'w') { |file| file.write MD5.hexdigest(bytes) << ' ' << File.basename(pkg) }
- File.open(pkg + '.sha1', 'w') { |file| file.write SHA1.hexdigest(bytes) << ' ' << File.basename(pkg) }
+ File.open(pkg + '.md5', 'w') { |file| file.write Digest::MD5.hexdigest(bytes) << ' ' << File.basename(pkg) }
+ File.open(pkg + '.sha1', 'w') { |file| file.write Digest::SHA1.hexdigest(bytes) << ' ' << File.basename(pkg) }
sh 'gpg', '--local-user', gpg_user, '--armor', '--output', pkg + '.asc', '--detach-sig', pkg, :verbose=>true
end
cp 'etc/KEYS', 'staged/distro'