summaryrefslogtreecommitdiff
path: root/libremakepkg
diff options
context:
space:
mode:
Diffstat (limited to 'libremakepkg')
-rwxr-xr-xlibremakepkg9
1 files changed, 6 insertions, 3 deletions
diff --git a/libremakepkg b/libremakepkg
index dfcdbe0..d98d94a 100755
--- a/libremakepkg
+++ b/libremakepkg
@@ -115,8 +115,9 @@ if [ "${UPDATE_FIRST}" = y ]; then
msg "Updating the chroot in use"
# -c option in mkarchroot indicates cache
mkarchroot -c ${CACHEDIR} -u "${CHROOTDIR}/${CHROOTNAME}"
+fi
-elif [ "${CLEAN_FIRST}" = y ]; then
+if [ "${CLEAN_FIRST}" = y ]; then
msg "Cleaning ..."
cp "/etc/libretools.d/cleansystem" "${CHROOTDIR}/${CHROOTNAME}/root"
(cat <<EOF
@@ -131,9 +132,11 @@ EOF
) > "${CHROOTDIR}/${CHROOTNAME}/clean"
mkarchroot -r "/clean" "${CHROOTDIR}/${CHROOTNAME}"
-elif [ -n ${PKGINSTALL} ]; then
+fi
+
+if [ -n ${PKGINSTALL} ]; then
msg "Installing packages"
- makechrootpkg -r ${PKGINSTALL}
+ makechrootpkg -r ${PKGINSTALL} "${CHROOTDIR}/${CHROOTNAME}"
fi
buildenv