aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/import.inc.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/web/import.inc.php b/web/import.inc.php
index 5b5462e..5a17735 100644
--- a/web/import.inc.php
+++ b/web/import.inc.php
@@ -154,6 +154,17 @@ function import_result($buildid, $filename)
/* Remove the build.log.bz2 file if it's in there */
system("rm -f " . $thisbuildtmpdir . "build.log.bz2", $retval);
+ /* Compress files that are typically too large and infrequently
+ used */
+ $files_to_compress = array("build-time.log",
+ "licenses-manifest.csv",
+ "packages-file-list-host.txt",
+ "packages-file-list-staging.txt",
+ "packages-file-list.txt");
+ foreach ($files_to_compress as $f) {
+ system("gzip " . $thisbuildtmpdir . $f, $retval);
+ }
+
/* Create the 'results/xyz/' directory if it doesn't already
exists */
if (! file_exists($finalbuildresultdir)) {