[Qa-jenkins-scm] [jenkins.debian.net] 03/03: reproducible coreboot/openwrt/netbsd: try to be even more sensible when displaying file sizes

Holger Levsen holger at moszumanska.debian.org
Sun Jul 5 23:13:57 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 8b59c46e1e70901cb8f313239ef8672ba5c92bf8
Author: Holger Levsen <holger at layer-acht.org>
Date:   Mon Jul 6 01:13:36 2015 +0200

    reproducible coreboot/openwrt/netbsd: try to be even more sensible when displaying file sizes
---
 bin/reproducible_common.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index 85ef6bf..c6ba67e 100755
--- a/bin/reproducible_common.sh
+++ b/bin/reproducible_common.sh
@@ -414,7 +414,8 @@ call_debbindiff_on_any_file() {
 
 get_filesize() {
 		local BYTESIZE="$(du -h -b $1 | cut -f1)"
-		if [ $BYTESIZE -gt 1048576 ] ; then
+		# numbers below 16384K are understood and more meaningful than 16M...
+		if [ $BYTESIZE -gt 16777216 ] ; then
 			SIZE="$(echo $BYTESIZE/1048576|bc)M"
 		elif [ $BYTESIZE -gt 1024 ] ; then
 			SIZE="$(echo $BYTESIZE/1024|bc)K"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list