[projects/pld-builder.new] Clean tmp from all old build jobs (builders have small ssd disks and old build tmp files eat space)
arekm
arekm at pld-linux.org
Tue Jul 3 07:15:12 CEST 2018
commit f36054688073ddb5aef02dc1c317e822b16a193a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue Jul 3 07:15:05 2018 +0200
Clean tmp from all old build jobs (builders have small ssd disks and old build tmp files eat space)
PLD_Builder/rpm_builder.py | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/PLD_Builder/rpm_builder.py b/PLD_Builder/rpm_builder.py
index 5a77d87..1a9ea57 100644
--- a/PLD_Builder/rpm_builder.py
+++ b/PLD_Builder/rpm_builder.py
@@ -199,6 +199,8 @@ def build_rpm(r, b):
}, logfile = b.logfile)
b.files = []
+ chroot.run("rm -rf /tmp/B.*", logfile = b.logfile)
+
tmpdir = b.tmpdir()
if res:
b.log_line("error: installing src rpm failed")
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/f36054688073ddb5aef02dc1c317e822b16a193a
More information about the pld-cvs-commit
mailing list