Author: pierre Date: Mon Jul 15 13:00:32 2019 New Revision: 4112 Log: Fix "installed files size" for the last package: In create-sbu_du.sh, we use "du -s" for getting the size of the installed files at the end of the build, and we compare to the "KB" from the previous package to get the Installed size of the last package. But the du command excludes an absolute dir, while it should be relative. This lead to bogus stats.
Modified: jhalfs/trunk/common/create-sbu_du-report.sh Modified: jhalfs/trunk/common/create-sbu_du-report.sh ============================================================================== --- jhalfs/trunk/common/create-sbu_du-report.sh Mon Jul 15 07:13:48 2019 (r4111) +++ jhalfs/trunk/common/create-sbu_du-report.sh Mon Jul 15 13:00:32 2019 (r4112) @@ -121,7 +121,7 @@ # For printing the last 'Installed files disk usage', we need to 'du' the # root dir, excluding the jhalfs directory (and lost+found). We assume # that the rootdir is $LOGSDIR/../.. -DU1=`du -skx --exclude=jhalfs --exclude=lost+found --exclude /var/lib $LOGSDIR/../.. | cut -f1` +DU1=`du -skx --exclude=jhalfs --exclude=lost+found --exclude var/lib $LOGSDIR/../.. | cut -f1` DU1MB=`perl -e 'printf "%.3f" , ('$DU1' / '1024')';` INSTALL=`perl -e 'print ('$DU1' - '$DU1PREV')';` INSTALLMB=`perl -e 'printf "%.3f" , ('$DU1MB' - '$DU1MBPREV')';` -- http://lists.linuxfromscratch.org/listinfo/alfs-log Unsubscribe: See the above information page