buildlogs: index.php Use lbzcat if available (much faster).
arekm
arekm at pld-linux.org
Tue Oct 21 16:50:46 CEST 2014
Author: arekm Date: Tue Oct 21 14:50:46 2014 GMT
Module: buildlogs Tag: HEAD
---- Log message:
Use lbzcat if available (much faster).
---- Files affected:
buildlogs:
index.php (1.37 -> 1.38)
---- Diffs:
================================================================
Index: buildlogs/index.php
diff -u buildlogs/index.php:1.37 buildlogs/index.php:1.38
--- buildlogs/index.php:1.37 Mon Oct 20 14:59:06 2014
+++ buildlogs/index.php Tue Oct 21 16:50:41 2014
@@ -495,7 +495,10 @@
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 {
================================================================
---- CVS-web:
http://cvs.pld-linux.org/buildlogs/index.php?r1=1.37&r2=1.38
More information about the pld-cvs-commit
mailing list