From 887b00b9465195b0d99649bf85ae7af1ed0ac782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Fri, 1 Jul 2011 10:46:40 -0300 Subject: Clean the chroot before updating --- libremakepkg | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libremakepkg b/libremakepkg index 13e7617..f9f7316 100755 --- a/libremakepkg +++ b/libremakepkg @@ -158,16 +158,16 @@ buildenv msg "Creating the package" if [ -d "${CHROOTDIR}/${CHROOTNAME}" ]; then # use chroot - if [ "${UPDATE_FIRST}" = 'y' ]; then - msg "Updating the chroot in use..." - mkarchroot -c ${CACHEDIR} -u "${CHROOTDIR}/${CHROOTNAME}" # -c option is for cache - fi - if [ "${CLEAN_FIRST}" = 'y' ]; then msg "Cleaning" clean_chroot fi + if [ "${UPDATE_FIRST}" = 'y' ]; then + msg "Updating the chroot in use..." + mkarchroot -c ${CACHEDIR} -u "${CHROOTDIR}/${CHROOTNAME}" # -c option is for cache + fi + makechrootpkg -r "${CHROOTDIR}" -l "${CHROOTNAME}" -- "${MAKEPKG_ARGS}" ev=$? # exit value -- cgit v1.1-4-g5e80