pidgin/old.pidgin.im

Parents 48fa4e0cb318
Children 94126843a79a
Add support for getting the sha1sum of the gtk bundle and debug symbols for use
in the win32 installer. Refs #15277
--- a/htdocs/win32/download_redir.php Sat Sep 15 04:38:02 2012 +0100
+++ b/htdocs/win32/download_redir.php Wed Sep 19 21:34:00 2012 +0100
@@ -52,8 +52,18 @@
}
} else if ($dl_pkg == 'gtk') {
$fwd_url = 'http://downloads.sourceforge.net/project/pidgin/GTK%2B%20for%20Windows/' . $_GET['gtk_version'] . '/gtk-runtime-' . $_GET['gtk_version'] . '.zip';
+ } else if ($dl_pkg == 'gtk_sha1sum') {
+ if ($_GET['gtk_version'] == '2.6.16.0') {
+ $body = '253fc4da13fced9c5534d9896c9e43147f41035d';
+ } else if ($_GET['gtk_version'] == '2.6.16.1') {
+ //TODO: $body = '5bf4f6903623d7b2fa2835821ccfdee8c685cbe0';
+ }
} else if ($dl_pkg == 'dbgsym') {
$fwd_url = 'http://downloads.sourceforge.net/project/pidgin/Pidgin/' . $_GET['version'] . '/pidgin-' . $_GET['version'] . '-dbgsym.zip';
+ } else if ($dl_pkg == 'dbgsym_sha1sum') {
+ if ($_GET['version'] == '2.10.6') {
+ $body = '37bad002895ac2d229a24a7ee154e6140c35034c';
+ }
} else if ($dl_pkg == 'oo_dict') {
$lang = $_GET['lang'];
$lang_file = $_GET['lang_file'];
@@ -69,11 +79,15 @@
}
if (isset($fwd_url)) {
- header("HTTP/1.1 302 Moved Temporarily");
- header('Location: ' . $fwd_url);
+ header("HTTP/1.1 302 Moved Temporarily");
+ header('Location: ' . $fwd_url);
+} else if (isset($body)) {
+ header("HTTP/1.1 200 OK");
+ header("Content-Type: text/plain");
+ echo "$body";
} else {
- header("HTTP/1.1 400 Bad Request");
- header("Status: 400 Bad Request");
+ header("HTTP/1.1 400 Bad Request");
+ header("Status: 400 Bad Request");
}
exit();