r3357 - jhalfs/trunk/LFS

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Sat May 26 03:55:46 PDT 2007


Author: manuel
Date: 2007-05-26 04:55:46 -0600 (Sat, 26 May 2007)
New Revision: 3357

Modified:
   jhalfs/trunk/LFS/master.sh
Log:
On iterative builds, log installed files only for the first build.

Modified: jhalfs/trunk/LFS/master.sh
===================================================================
--- jhalfs/trunk/LFS/master.sh	2007-05-19 20:46:36 UTC (rev 3356)
+++ jhalfs/trunk/LFS/master.sh	2007-05-26 10:55:46 UTC (rev 3357)
@@ -233,7 +233,8 @@
     # Insert instructions for unpacking the package and changing directories
     if [ "$pkg_tarball" != "" ] ; then
       # Touch timestamp file if installed files logs will be created.
-      if [ "${INSTALL_LOG}" = "y" ] ; then
+      # But only for the firt build when running iterative builds.
+      if [ "${INSTALL_LOG}" = "y" ] && [ "x${N}" = "x" ] ; then
         CHROOT_wrt_TouchTimestamp
       fi
       CHROOT_Unpack "$pkg_tarball"
@@ -261,7 +262,7 @@
     # except if the package build fails.
     if [ "$pkg_tarball" != "" ] ; then
       CHROOT_wrt_RemoveBuildDirs "$name"
-      if [ "${INSTALL_LOG}" = "y" ] ; then
+      if [ "${INSTALL_LOG}" = "y" ] && [ "x${N}" = "x" ] ; then
         CHROOT_wrt_LogNewFiles "$name"
       fi
     fi
@@ -317,18 +318,18 @@
       *bootscripts)
             name="lfs-bootscripts"
             pkg_tarball=$(get_package_tarball_name $name)
-            CHROOT_Unpack "$pkg_tarball"
             if [ "${INSTALL_LOG}" = "y" ] ; then
               CHROOT_wrt_TouchTimestamp
             fi
+            CHROOT_Unpack "$pkg_tarball"
         ;;
       *kernel)
             name="linux"
             pkg_tarball=$(get_package_tarball_name $name)
-            CHROOT_Unpack "$pkg_tarball"
             if [ "${INSTALL_LOG}" = "y" ] ; then
               CHROOT_wrt_TouchTimestamp
             fi
+            CHROOT_Unpack "$pkg_tarball"
        ;;
     esac
 




More information about the alfs-log mailing list