From eac1b69f0e33076fde73c8df12e03e94545ea49d Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Tue, 6 Jun 2017 16:26:44 +0200 Subject: [PATCH] Fix #44: Do not clean up /home/build after successful build This adjusts the /etc/abuild.conf automatically during build init. Zap your build chroots now, to benefit from this commit. --- pmb/build/init.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pmb/build/init.py b/pmb/build/init.py index 67f0e106..32139321 100644 --- a/pmb/build/init.py +++ b/pmb/build/init.py @@ -76,5 +76,10 @@ def init(args, suffix="native"): # Add user to group abuild pmb.chroot.root(args, ["adduser", "user", "abuild"], suffix) + # abuild.conf: Don't clean the build folder after building, so we can + # inspect it afterwards for debugging + pmb.chroot.root(args, ["sed", "-i", "-e", "s/^CLEANUP=.*/CLEANUP=''/", + "/etc/abuild.conf"], suffix) + # Mark the chroot as initialized pmb.chroot.root(args, ["touch", marker], suffix)