From 862ceb2f621726507bc06ee3bb07cb9a426cf28d Mon Sep 17 00:00:00 2001
From: Remi Collet <fedora@famillecollet.com>
Date: Tue, 17 Jan 2017 07:11:40 +0100
Subject: Wizard: testing packages

---
 index.html       |  2 +-
 wizard/index.php | 21 ++++++++++++++++-----
 2 files changed, 17 insertions(+), 6 deletions(-)

diff --git a/index.html b/index.html
index 69d777a6..cbdccd43 100644
--- a/index.html
+++ b/index.html
@@ -55,7 +55,7 @@
 				<p class="msg">
 				-->
 				<h2>Next year <strong>Web hosting</strong> budget, until January 2018:
-				<progress max="500" value="464">93%</progress> <strong>93%&nbsp;of&nbsp;500€</strong>.
+				<progress max="500" value="490">98%</progress> <strong>98%&nbsp;of&nbsp;500€</strong>.
 				<!--
 				</p>-<p class="msg" style="margin-bottom: 18em">
 				-->
diff --git a/wizard/index.php b/wizard/index.php
index 8d4b6db6..0c99e08f 100644
--- a/wizard/index.php
+++ b/wizard/index.php
@@ -212,9 +212,17 @@ if ($php && $os && $type && !$err) {
             printf("<li>Command to upgrade (the repository only provides PHP):");
             printf("<pre>    $yum update</pre>");
             printf("</li><br />");
-            printf("<li>Command to install additional packages:");
+
+            printf("<li>Command to install <b>additional</b> packages:");
             printf("<pre>    $yum install php-xxx</pre>");
             printf("</li><br />");
+
+            if ($ver >= 7) {
+                printf("<li>Command to install <b>testing</b> packages:");
+                printf("<pre>    $yum --enablerepo=%s-test install php-xxx</pre>", $phpvers[$php]);
+                printf("</li><br />");
+            }
+
             printf("<li>Command to check the installed version and available extensions:");
             printf("<pre>    php --version\n    php --modules</pre>");
             printf("</li><br />");
@@ -225,23 +233,26 @@ if ($php && $os && $type && !$err) {
         printf("<li>You want <b>multiple versions </b> which means using a <a href='https://www.softwarecollections.org/en/'>Software Collection</a></li><br />");
         $scl='php'.str_replace('.', '', $php);
         
-        if ($dist=='Fedora' || version_compare($php, '5.6', '<')) {
+        if ($dist=='Fedora') {
             printf("<li>The <b>%s</b> collection is available in the <b>remi</b> repository</li><br />", $scl);
             printf("<li>Command to install:");
             printf("<pre>    $yum --enablerepo=remi install %s</pre>", $scl);
             printf("</li><br />");
             printf("<li>Command to install additional packages:");
             printf("<pre>    $yum --enablerepo=remi install %s-php-xxx</pre>", $scl);
-            printf("</li><br />");
         } else {
             printf("<li>The <b>%s</b> collection is available in the <b>remi-safe</b> repository</li><br />", $scl);
             printf("<li>Command to install:");
             printf("<pre>    $yum install %s</pre>", $scl);
             printf("</li><br />");
-            printf("<li>Command to install additional packages:");
+            printf("<li>Command to install <b>additional</b> packages:");
             printf("<pre>    $yum install %s-php-xxx</pre>", $scl);
-            printf("</li><br />");
         }
+        printf("</li><br />");
+        printf("<li>Command to install <b>testing</b> packages:");
+        printf("<pre>    $yum --enablerepo=remi-test install %s-php-xxx</pre>", $scl);
+        printf("</li><br />");
+
         printf("<li>Command to check the installed version and available extensions:");
         printf("<pre>    %s --version\n    %s --modules</pre>", $scl, $scl);
         printf("</li><br />");
-- 
cgit