summaryrefslogtreecommitdiff
path: root/libremakepkg
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-06-22 03:23:26 -0500
committerJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-06-22 03:23:26 -0500
commit7499b4f620b052e7ced69972a0ad368cb648f2a7 (patch)
tree5e71355a1a5d76c858687ec99ea8431da9895184 /libremakepkg
parentad11f4aee0e7af9dcba780d464edef34cc937d4a (diff)
Fixed libremakepkg error
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