Changeset 93346ee for LFS


Ignore:
Timestamp:
04/28/2007 03:24:20 PM (17 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
38d2de6
Parents:
3834b6e
Message:

LFS: Added support for installed files logs.
Should be ported to other books when verified that works as expected.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LFS/master.sh

    r3834b6e r93346ee  
    233233    # Insert instructions for unpacking the package and changing directories
    234234    if [ "$pkg_tarball" != "" ] ; then
     235      # Touch timestamp file if inelalled files logs will be created.
     236      if [ "${INSTALL_LOG}" = "y" ] ; then
     237        CHROOT_wrt_TouchTimestamp
     238      fi
    235239      CHROOT_Unpack "$pkg_tarball"
    236240      # If the testsuites must be run, initialize the log file
     
    254258    esac
    255259
    256     # Remove the build directory(ies) except if the package build fails.
     260    # Write installed files log and remove the build directory(ies)
     261    # except if the package build fails.
    257262    if [ "$pkg_tarball" != "" ] ; then
    258263      CHROOT_wrt_RemoveBuildDirs "$name"
     264      if [ "${INSTALL_LOG}" = "y" ] ; then
     265        CHROOT_wrt_LogNewFiles "$name"
     266      fi
    259267    fi
    260268
     
    311319            pkg_tarball=$(get_package_tarball_name $name)
    312320            CHROOT_Unpack "$pkg_tarball"
     321            if [ "${INSTALL_LOG}" = "y" ] ; then
     322              CHROOT_wrt_TouchTimestamp
     323            fi
    313324        ;;
    314325      *kernel)
     
    316327            pkg_tarball=$(get_package_tarball_name $name)
    317328            CHROOT_Unpack "$pkg_tarball"
     329            if [ "${INSTALL_LOG}" = "y" ] ; then
     330              CHROOT_wrt_TouchTimestamp
     331            fi
    318332       ;;
    319333    esac
     
    332346
    333347    case "${this_script}" in
    334       *bootscripts)  CHROOT_wrt_RemoveBuildDirs "dummy" ;;
    335       *kernel)       CHROOT_wrt_RemoveBuildDirs "dummy" ;;
     348      *bootscripts)  CHROOT_wrt_RemoveBuildDirs "dummy"
     349                     if [ "${INSTALL_LOG}" = "y" ] ; then
     350                       CHROOT_wrt_LogNewFiles "$name"
     351                     fi ;;
     352      *kernel)       CHROOT_wrt_RemoveBuildDirs "dummy"
     353                     if [ "${INSTALL_LOG}" = "y" ] ; then
     354                       CHROOT_wrt_LogNewFiles "$name"
     355                     fi ;;
    336356    esac
    337357
Note: See TracChangeset for help on using the changeset viewer.