tazwok rev 247
Webserver: add summary
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sat Feb 12 04:01:24 2011 +0100 (2011-02-12) |
parents | 7b283e090907 |
children | 5ff5f524bc05 |
files | tazwok web/index.php |
line diff
1.1 --- a/tazwok Sat Feb 12 02:33:51 2011 +0100 1.2 +++ b/tazwok Sat Feb 12 04:01:24 2011 +0100 1.3 @@ -2899,6 +2899,7 @@ 1.4 \$log_dir=\"$LOCAL_REPOSITORY/log\"; 1.5 \$packages=\"$PACKAGES_REPOSITORY\"; 1.6 \$incoming=\"$INCOMING_REPOSITORY\"; 1.7 +\wok=\"$WOK\"; 1.8 1.9 ?>" > $WEBSERVER/conf-${undigest:-$SLITAZ_VERSION}.php 1.10 [ -L "$WEBSERVER/web" ] || ln -s /usr/share/slitaz/web $WEBSERVER
2.1 --- a/web/index.php Sat Feb 12 02:33:51 2011 +0100 2.2 +++ b/web/index.php Sat Feb 12 04:01:24 2011 +0100 2.3 @@ -101,7 +101,8 @@ 2.4 Temporary toolchain log are named tmp-toolchain-?package <br /> 2.5 </p> 2.6 2.7 -<pre> 2.8 +<h2>Summary</h2> 2.9 +<pre class="package"> 2.10 <?php 2.11 // Check curent status (update in real time) and display summary. 2.12 if (file_exists($lockfile)) { 2.13 @@ -113,6 +114,18 @@ 2.14 include("$db_dir/summary"); 2.15 ?> 2.16 </pre> 2.17 +<p> 2.18 +Packages in the wok: <?php 2.19 +system("cd $wok && ls -1 | wc -l"); ?><br /> 2.20 +Commited packages: <?php 2.21 +system("wc -l $packages/commit | cut -f 1 -d ' '"); ?><br /> 2.22 +Packages to cook: <?php 2.23 +system("wc -l $packages/cooklist | cut -f 1 -d ' '"); ?><br /> 2.24 +Broken packages: <?php 2.25 +system("wc -l $packages/broken | cut -f 1 -d ' '"); ?><br /> 2.26 +Blocked packages: <?php 2.27 +system("wc -l $packages/blocked | cut -f 1 -d ' '"); ?> 2.28 +</p> 2.29 2.30 <h3>Commit</h3> 2.31 <pre class="package">