From 8cb36c9e18a9a2d48c2151ccf30ac57df20ec38a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joshua=20Ismael=20Haase=20Hern=C3=A1ndez?= Date: Wed, 8 Feb 2012 10:34:04 -0600 Subject: librechroot: use update-cleansystem. update-cleansystem: writes to /etc/libretools.d/cleansystem. --- librechroot | 10 +++++----- update-cleansystem | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/librechroot b/librechroot index dfeabb0..0398a0f 100755 --- a/librechroot +++ b/librechroot @@ -24,14 +24,15 @@ function usage { + echo "" echo "Usage: $0 [options] [chrootname]" echo "Use it as root." - echo '' + echo "" echo "Default chroot name: $CHROOT" echo "Default chrootdir: $CHROOTDIR" - echo '' + echo "" echo "OPTIONS:" - echo '' + echo "" echo " -c : clean the chroot using pacman" echo " only 'base', 'base-devel' and 'sudo' on chroot" echo " -d : use instead of default" @@ -43,9 +44,8 @@ function usage { } function clean_chroot { # Clean packages with pacman - msg "Cleaning chroot: ${CHROOTDIR}/${CHROOTNAME}" - + update-cleansystem cp "/etc/libretools.d/cleansystem" "${CHROOTDIR}/${CHROOTNAME}/cleansystem" (cat < $(dirname $0)/cleansystem + base base-devel ${@} | sort > /etc/libretools.d/cleansystem exit $? -- cgit v1.1-4-g5e80