From 3b149920616884e125864d94d1b2907b3cf3829c Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Mon, 15 Jul 2019 20:00:32 +0000 Subject: [PATCH] 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. --- common/create-sbu_du-report.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/create-sbu_du-report.sh b/common/create-sbu_du-report.sh index ad3e441..e275294 100755 --- a/common/create-sbu_du-report.sh +++ b/common/create-sbu_du-report.sh @@ -121,7 +121,7 @@ done # 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')';`