[ovitters src gnome org: [art-web] download: don't read from mirror, read from local copy\!]



art.gnome.org was downloading stuff from ftp.gnome.org and then serving
that. Results in about 60GB of downloads from ftp.gnome.org to
window.gnome.org.

Made art.gnome.org serve those files directly from /ftp.

Note: Seems art.gnome.org does this to change the MIME type.
-- 
Regards,
Olav
--- Begin Message ---
commit ec37b7b90ffc0fdb893d119d869ab9fb0aaa55d0
Author: Olav Vitters <olav vitters nl>
Date:   Tue Apr 12 19:48:56 2011 +0200

    download: don't read from mirror, read from local copy\!

 download |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/download b/download
index 9bf4789..2c4fe4e 100644
--- a/download
+++ b/download
@@ -41,7 +41,7 @@ else if($section == "themes")
 	{
 		header ("Content-type: application/x-gnome-theme-package");
 		header ("Content-Disposition: attachment; filename=\"$filename\"");
-		readfile ("$mirror_url$archive/themes/$category/$filename");
+		readfile ("$sys_ftp_dir$archive/themes/$category/$filename");
 	}
 	else
 		header ("Location: $mirror_url$archive/themes/$category/$filename");
_______________________________________________
commits-list mailing list (read only)
http://mail.gnome.org/mailman/listinfo/commits-list

Want to limit the commits to a few modules? Go to above URL, log in to edit your options and select the modules ('topics') you want.

--- End Message ---


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]