com web/qa: Add xz support if we have a .xz: include/release-qa.php
| From: | David Soria Parra | Date: | Tue, 13 Nov 2012 16:28:41 +0000 |
| Subject: | com web/qa: Add xz support if we have a .xz: include/release-qa.php | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-66772@lists.php.net to get a copy of this message | ||
Commit: f0a398060077769a17737cddf1766f3e148e7abc
Author: David Soria Parra <dsp@php.net> Tue, 13 Nov 2012 17:28:30 +0100
Parents: dbe9f08392d3488e7d6b8080129417ab94c31978
Branches: master
Link: http://git.php.net/?p=web/qa.git;a=commitdiff;h=f0a398060077769a17737cddf1766f3e148e7abc
Log:
Add xz support if we have a .xz
Changed paths:
M include/release-qa.php
Diff:
diff --git a/include/release-qa.php b/include/release-qa.php
index c9de8eb..95ad663 100644
--- a/include/release-qa.php
+++ b/include/release-qa.php
@@ -127,6 +127,11 @@ foreach ($QA_RELEASES as $pversion => $info) {
$QA_RELEASES[$pversion]['release']['files']['bz2']['md5']
= $info['release']['md5_bz2'];
$QA_RELEASES[$pversion]['release']['files']['gz']['path']
= $info['release']['baseurl'] . $fn_base . '.tar.gz';
$QA_RELEASES[$pversion]['release']['files']['gz']['md5']
= $info['release']['md5_gz'];
+
+ if (!empty($info['release']['md5_xz'])) {
+ $QA_RELEASES[$pversion]['release']['files']['xz']['path']
= $info['release']['baseurl'] . $fn_base . '.tar.xz';
+ $QA_RELEASES[$pversion]['release']['files']['xz']['md5']
= $info['release']['md5_xz'];
+ }
}
} else {
$QA_RELEASES[$pversion]['release']['enabled'] = false;
@@ -172,6 +177,9 @@ function show_release_qa($QA_RELEASES) {
// pure madness
echo "<li>{$info['version']}: [<a
href='{$info['files']['bz2']['path']}'>tar.bz2</a>]
(md5 checksum: {$info['files']['bz2']['md5']})</li>\n";
echo "<li>{$info['version']}: [<a
href='{$info['files']['gz']['path']}'>tar.gz</a>]
(md5 checksum: {$info['files']['gz']['md5']})</li>\n";
+ if (isset($info['files']['xz'])) {
+ echo "<li>{$info['version']}: [<a
href='{$info['files']['xz']['path']}'>tar.gz</a>]
(md5 checksum: {$info['files']['xz']['md5']})</li>\n";
+ }
}
echo "</ul>\n</span>\n";