[java-package] 01/01: use --apparent-size when invoking du to check size of JDK tarball
Tony Mancill
tmancill at moszumanska.debian.org
Sun Sep 13 04:26:46 UTC 2015
This is an automated email from the git hooks/post-receive script.
tmancill pushed a commit to branch master
in repository java-package.
commit 8905b8c25b9b7a64fe1df43e187cb48f6eb1a5ad
Author: tony mancill <tmancill at debian.org>
Date: Sat Sep 12 21:05:56 2015 -0700
use --apparent-size when invoking du to check size of JDK tarball
The bug report references problems on OpenVZ. Adding --apparent-size
should be safe for general use. Closes: #794401
---
lib/common.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/common.sh b/lib/common.sh
index 1e5c30b..73d729f 100644
--- a/lib/common.sh
+++ b/lib/common.sh
@@ -18,7 +18,7 @@ read_yn() {
# diskusage <path>: prints size in MB
diskusage() {
local path="$1"
- read size dummy < <( du -sm "$path" )
+ read size dummy < <( du -sm --apparent-size "$path" )
echo "$size"
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/java-package.git
More information about the pkg-java-commits
mailing list