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.
This commit is contained in:
parent
30a89617c4
commit
3b14992061
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ done
|
||||||
# For printing the last 'Installed files disk usage', we need to 'du' the
|
# For printing the last 'Installed files disk usage', we need to 'du' the
|
||||||
# root dir, excluding the jhalfs directory (and lost+found). We assume
|
# root dir, excluding the jhalfs directory (and lost+found). We assume
|
||||||
# that the rootdir is $LOGSDIR/../..
|
# 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')';`
|
DU1MB=`perl -e 'printf "%.3f" , ('$DU1' / '1024')';`
|
||||||
INSTALL=`perl -e 'print ('$DU1' - '$DU1PREV')';`
|
INSTALL=`perl -e 'print ('$DU1' - '$DU1PREV')';`
|
||||||
INSTALLMB=`perl -e 'printf "%.3f" , ('$DU1MB' - '$DU1MBPREV')';`
|
INSTALLMB=`perl -e 'printf "%.3f" , ('$DU1MB' - '$DU1MBPREV')';`
|
||||||
|
|
Reference in a new issue