]> git.pld-linux.org Git - projects/buildlogs.git/commitdiff
Use lbzcat if available (much faster).
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 21 Oct 2014 14:50:41 +0000 (14:50 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 21 Oct 2014 14:50:41 +0000 (14:50 +0000)
index.php

index f3501e4914ba30864ad2a3394de9abb87f92f462..d3583843b36b820ed234ea832544c40f2ae44289 100644 (file)
--- a/index.php
+++ b/index.php
@@ -495,7 +495,10 @@ function dump_text()
                        date("Y/m/d H:i:s", filemtime("$root_directory/$f")) . "\n";
 
        if (preg_match("/\.bz2$/", $f)) {
-               $filter = "bzcat";
+               if (is_executable("/usr/bin/lbzcat"))
+                       $filter = "lbzcat";
+               else
+                       $filter = "bzcat";
        } elseif (preg_match("/\.gz$/", $f)) {
                $filter = "zcat";
        } else {
@@ -542,7 +545,7 @@ function list_archs()
             "alt=\""._("Powered by PLD Linux")."\" border=\"0\" /></a><br />\n" .
             "<small>(c) 2002-". date("Y") . " ". 
             "<a href=\"mailto:feedback@pld-linux.org\">PLD&nbsp;Team</a><br />\n".
-            '$Revision: 1.36 $'.
+            '$Revision: 1.37 $'.
             "</small></div>\n";
 
        # smile ;)
@@ -916,7 +919,7 @@ function welcome()
 <!-- ech... niech strace... -->
 <a href="mailto:feedback@pld-linux.org"><?=_("to us")?></a>. <?=_("Positive opinions are also")?>
 <a href="mailto:feedback@pld-linux.org"><?=_("welcome")?></a> ;)</p>
-<p>Version: $Id: index.php,v 1.36 2014/10/18 10:30:03 arekm Exp $</p>
+<p>Version: $Id: index.php,v 1.37 2014/10/20 12:59:06 glen Exp $</p>
 </td><td width="20%">&nbsp;</td></tr>
 </table>
 <?php
This page took 0.097169 seconds and 4 git commands to generate.