aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-06-19 12:05:31 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-06-19 12:05:31 +0200
commitd041b1fc9fc984dbd3b7228549fdecdb2f85c335 (patch)
treec9ed8e9870a12934883a268844e81ef6782b40ac
parent5383664b23d71e4802ee188e9d98b686044bd3e2 (diff)
downloadbuildroot-test-d041b1fc9fc984dbd3b7228549fdecdb2f85c335.tar.gz
buildroot-test-d041b1fc9fc984dbd3b7228549fdecdb2f85c335.tar.bz2
web/import.inc.php: compress some result files
Some of the result files are quite large and not used that frequently. In order to save disk space on the server, let's store them compressed. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-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)) {