/www/pidgin: 94137935f919: Add support for getting the sha1sum o...
Daniel Atallah
datallah at pidgin.im
Thu Sep 20 10:29:02 EDT 2012
Changeset: 94137935f9190dd52a98dabdc2633445931b81f9
Author: Daniel Atallah <datallah at pidgin.im>
Date: 2012-09-19 21:34 +0100
Branch: default
URL: http://hg.pidgin.im/www/pidgin/rev/94137935f919
Description:
Add support for getting the sha1sum of the gtk bundle and debug symbols for use
in the win32 installer. Refs #15277
diffstat:
htdocs/win32/download_redir.php | 22 ++++++++++++++++++----
1 files changed, 18 insertions(+), 4 deletions(-)
diffs (42 lines):
diff --git a/htdocs/win32/download_redir.php b/htdocs/win32/download_redir.php
--- a/htdocs/win32/download_redir.php
+++ b/htdocs/win32/download_redir.php
@@ -52,8 +52,18 @@ if (isset($_GET['dl_pkg'])) {
}
} 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($_GET['dl_pkg'])) {
}
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();
More information about the Commits
mailing list