Make sure the downloads page for past releases is updated to point at archives location
authorPeter Donald <donaldp@apache.org>
Wed, 7 Nov 2012 08:09:31 +0000 (08:09 +0000)
committerPeter Donald <donaldp@apache.org>
Wed, 7 Nov 2012 08:09:31 +0000 (08:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/buildr/trunk@1406487 13f79535-47bb-0310-9956-ffa450edef68

rakelib/stage.rake

index aa1a44b..efec8d2 100644 (file)
@@ -121,7 +121,10 @@ p>. ("Release signing keys":#{official}/KEYS)
     TEXTILE
     file_name = 'doc/download.textile'
     print "Adding download links to #{file_name} ... "
-    modified = File.read(file_name).sub(/^h2\(#dist\).*$/) { |header| "#{header}\n\n#{textile}" }
+    modified = File.read(file_name).
+      gsub('http://www.apache.org/dist','http://archive.apache.org/dist').
+      gsub('http://www.apache.org/dyn/closer.cgi','http://archive.apache.org/dist').
+      sub(/^h2\(#dist\).*$/) { |header| "#{header}\n\n#{textile}" }
     File.open file_name, 'w' do |file|
       file.write modified
     end