summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-11-07 15:04:29 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-11-07 15:04:29 -0300
commit6c14fad1750b4342b5b283e0851c00e3c074a15c (patch)
tree8cf559624a39fd8b1e9b8bf16a0f9e5f6fde7c35
parent40ebd71a19bc22f9950b3f5b26daeb6c10631ca7 (diff)
The dirtiest way of putting chcleanup to work on the chroot
-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 {