add some comment to do to add fakeroot

This commit is contained in:
Yingjie Wang 2024-06-06 20:52:06 -04:00
parent 049364a0de
commit 0cb212f005

4
leaf
View File

@ -363,13 +363,17 @@ leaf_build_package() {
} }
leaf_install_package() { leaf_install_package() {
# install need to be in fakeroot
leaf_build_package leaf_build_package
# trace need to to in the same fakeroot
leaf_trace_package "${pkgdir}" leaf_trace_package "${pkgdir}"
# ROOT starts
src_preinstall src_preinstall
leaf_merge_package "${pkgdir}" leaf_merge_package "${pkgdir}"
src_postinstall src_postinstall
leaf_update_package_database add "${PKG_PREFIX}/${PKG_NAME}" leaf_update_package_database add "${PKG_PREFIX}/${PKG_NAME}"
leaf_update_environment leaf_update_environment
# ROOT ends
echo -e "${GREEN_COLOR}* Package ${PKG_PREFIX}/${PKG_NAME} has been installed${CLEAR_COLOR}\n" echo -e "${GREEN_COLOR}* Package ${PKG_PREFIX}/${PKG_NAME} has been installed${CLEAR_COLOR}\n"
} }