summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlibrechroot7
1 files changed, 6 insertions, 1 deletions
diff --git a/librechroot b/librechroot
index c8e02b0..158828b 100755
--- a/librechroot
+++ b/librechroot
@@ -46,7 +46,12 @@ function usage {
function clean_chroot { # Clean packages with pacman
cp -a "$(dirname $0)/chcleanup" "${CHROOTDIR}/${CHROOTNAME}/clean"
- mkarchroot -r "cd /build; /clean" "${CHROOTDIR}/${CHROOTNAME}"
+ libremessages="$(grep "libremessages" /etc/libretools.conf | cut -d" " -f2)"
+
+ cat /etc/libretools.conf ${libremessages} | sed "/libremessages/d" > "${CHROOTDIR}/${CHROOTNAME}/etc/libretools.conf"
+
+
+ mkarchroot -r "sh -c 'cd /build; /clean'" "${CHROOTDIR}/${CHROOTNAME}"
}
function clean_repo {