Changeset f7d1386


Ignore:
Timestamp:
07/04/2017 01:01:13 PM (7 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
2.4
Children:
3917eca
Parents:
6a7c218
Message:

Package management: compute times and sizes without packing times and sizes

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • Config.in

    r6a7c218 rf7d1386  
    954954
    955955    config    REPORT
    956         depends !PKGMNGT
    957956        bool "Create SBU and disk usage report"
    958957        default y
  • LFS/lfs.xsl

    r6a7c218 rf7d1386  
    237237  [[ -z $(ls $dir) ]] &amp;&amp; rmdir -v $dir
    238238done
     239PREV_SEC=${SECONDS}
    239240packInstall
     241SECONDS=${PREV_SEC}
    240242rm -rf $PKG_DEST
    241243</xsl:text>
     
    309311           mode="pkgmngt"/>
    310312        <xsl:if test="$dirname = 'chapter06'">
    311           <xsl:text>packInstall
     313          <xsl:text>PREV_SEC=${SECONDS}
     314packInstall
     315SECONDS=${PREV_SEC}
    312316rm -rf $PKG_DEST
    313317</xsl:text>
     
    490494        <xsl:copy-of select="substring-after(string(),'ZONEINFO=')"/>
    491495        <xsl:text>
     496PREV_SEC=${SECONDS}
    492497packInstall
     498SECONDS=${PREV_SEC}
    493499rm -rf $PKG_DEST
    494500PKG_DEST=$OLD_PKG_DEST
  • common/create-sbu_du-report.sh

    r6a7c218 rf7d1386  
    122122# root dir, excluding the jhalfs directory (and lost+found). We assume
    123123# that the rootdir is $LOGSDIR/../..
    124 DU1=`du -skx --exclude=jhalfs --exclude=lost+found $LOGSDIR/../.. | cut -f1`
     124DU1=`du -skx --exclude=jhalfs --exclude=lost+found --exclude /var/lib $LOGSDIR/../.. | cut -f1`
    125125DU1MB=`perl -e 'printf "%.3f" , ('$DU1' / '1024')';`
    126126INSTALL=`perl -e 'print ('$DU1' - '$DU1PREV')';`
  • common/libs/func_wrt_Makefile

    r6a7c218 rf7d1386  
    4040LUSER_HOME     = \$(LHOME)/\$(LUSER)
    4141PRT_DU         = echo -e "\nKB: \`du -skx --exclude=\$(SCRIPT_ROOT) --exclude=lost+found \$(MOUNT_PT) \`\n"
    42 PRT_DU_CR      = echo -e "\nKB: \`du -skx --exclude=\$(SCRIPT_ROOT) --exclude=lost+found / \`\n"
     42PRT_DU_CR      = echo -e "\nKB: \`du -skx --exclude=\$(SCRIPT_ROOT) --exclude=lost+found --exclude /var/lib / \`\n"
    4343
    4444ADD_REPORT       = $REPORT
Note: See TracChangeset for help on using the changeset viewer.