summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-07-01 10:46:40 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-07-01 10:46:40 -0300
commit887b00b9465195b0d99649bf85ae7af1ed0ac782 (patch)
treeda0c56fb5e133797569e61eeb3a3201161a44f73
parent8a385be009f51b1af2cd8fd82c08b6b7c2c7f8b0 (diff)
Clean the chroot before updating
-rwxr-xr-xlibremakepkg10
1 files 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